mirror of
https://github.com/e107inc/e107.git
synced 2025-07-16 12:36:26 +02:00
Retain welcome-message as frontpage setting if present.
This commit is contained in:
@ -650,11 +650,14 @@ function update_706_to_800($type='')
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// Front page prefs (logic has changed)
|
// Front page prefs (logic has changed)
|
||||||
if (!isset($pref['frontpage_force']))
|
if (!isset($pref['frontpage_force'])) // Just set basic options; no real method of converting the existing
|
||||||
{ // Just set basic options; no real method of converting the existing
|
{
|
||||||
if ($just_check) return update_needed('Change front page prefs');
|
if ($just_check) return update_needed('Change front page prefs');
|
||||||
$pref['frontpage_force'] = array(e_UC_PUBLIC => '');
|
$pref['frontpage_force'] = array(e_UC_PUBLIC => '');
|
||||||
$pref['frontpage'] = array(e_UC_PUBLIC => 'news.php');
|
|
||||||
|
$fpdef = vartrue($pref['frontpage']['all']) == 'index.php' ? 'index.php' : 'news.php';
|
||||||
|
|
||||||
|
$pref['frontpage'] = array(e_UC_PUBLIC => $fpdef);
|
||||||
// $_pdateMessages[] = LAN_UPDATE_38; //FIXME
|
// $_pdateMessages[] = LAN_UPDATE_38; //FIXME
|
||||||
$log->logMessage(LAN_UPDATE_20."frontpage",E_MESSAGE_DEBUG);
|
$log->logMessage(LAN_UPDATE_20."frontpage",E_MESSAGE_DEBUG);
|
||||||
$do_save = TRUE;
|
$do_save = TRUE;
|
||||||
|
Reference in New Issue
Block a user