mirror of
https://github.com/e107inc/e107.git
synced 2025-04-21 13:11:52 +02:00
Retain welcome-message as frontpage setting if present.
This commit is contained in:
parent
ca34172ac4
commit
9c47dcfbd3
@ -650,11 +650,14 @@ function update_706_to_800($type='')
|
||||
// }
|
||||
|
||||
// Front page prefs (logic has changed)
|
||||
if (!isset($pref['frontpage_force']))
|
||||
{ // Just set basic options; no real method of converting the existing
|
||||
if (!isset($pref['frontpage_force'])) // Just set basic options; no real method of converting the existing
|
||||
{
|
||||
if ($just_check) return update_needed('Change front page prefs');
|
||||
$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
|
||||
$log->logMessage(LAN_UPDATE_20."frontpage",E_MESSAGE_DEBUG);
|
||||
$do_save = TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user