Archived
Dashboard: move defaults to serendipity_config
Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
@@ -52,14 +52,6 @@ $data['update'] = version_compare($data['usedVersion'], $data['curVersion'
|
||||
serendipity_plugin_api::hook_event('plugin_dashboard_updater', $output, $data['curVersion']);
|
||||
$data['updateButton'] = $output;
|
||||
|
||||
// Can be set through serendipity_config_local.inc.php
|
||||
if (!isset($serendipity['dashboardCommentsLimit'])) {
|
||||
$serendipity['dashboardCommentsLimit'] = 5;
|
||||
}
|
||||
if (!isset($serendipity['dashboardEntriesLimit'])) {
|
||||
$serendipity['dashboardEntriesLimit'] = 5;
|
||||
}
|
||||
|
||||
$cjoin = ($serendipity['serendipityUserlevel'] == USERLEVEL_EDITOR) ? "
|
||||
LEFT JOIN {$serendipity['dbPrefix']}authors a ON (e.authorid = a.authorid)
|
||||
WHERE e.authorid = " . (int)$serendipity['authorid']
|
||||
|
||||
Reference in New Issue
Block a user