Dashboard: move defaults to serendipity_config
Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
10caea1b92
commit
481b821bae
@ -52,14 +52,6 @@ $data['update'] = version_compare($data['usedVersion'], $data['curVersion'
|
|||||||
serendipity_plugin_api::hook_event('plugin_dashboard_updater', $output, $data['curVersion']);
|
serendipity_plugin_api::hook_event('plugin_dashboard_updater', $output, $data['curVersion']);
|
||||||
$data['updateButton'] = $output;
|
$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) ? "
|
$cjoin = ($serendipity['serendipityUserlevel'] == USERLEVEL_EDITOR) ? "
|
||||||
LEFT JOIN {$serendipity['dbPrefix']}authors a ON (e.authorid = a.authorid)
|
LEFT JOIN {$serendipity['dbPrefix']}authors a ON (e.authorid = a.authorid)
|
||||||
WHERE e.authorid = " . (int)$serendipity['authorid']
|
WHERE e.authorid = " . (int)$serendipity['authorid']
|
||||||
|
@ -144,6 +144,15 @@ if (!isset($serendipity['backendBlogtitleFirst'])) {
|
|||||||
$serendipity['backendBlogtitleFirst'] = false;
|
$serendipity['backendBlogtitleFirst'] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dashboard: set number of comments and drafts / future entries to be shown
|
||||||
|
if (!isset($serendipity['dashboardCommentsLimit'])) {
|
||||||
|
$serendipity['dashboardCommentsLimit'] = 5;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($serendipity['dashboardEntriesLimit'])) {
|
||||||
|
$serendipity['dashboardEntriesLimit'] = 5;
|
||||||
|
}
|
||||||
|
|
||||||
// Available languages
|
// Available languages
|
||||||
if (!isset($serendipity['languages'])) {
|
if (!isset($serendipity['languages'])) {
|
||||||
$serendipity['languages'] = array('en' => 'English',
|
$serendipity['languages'] = array('en' => 'English',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user