1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Tests for SEF URLs. Search page fix.

This commit is contained in:
Cameron
2021-01-13 16:16:50 -08:00
parent ca471b31db
commit 992b7b4bfe
7 changed files with 534 additions and 22 deletions

View File

@@ -579,10 +579,11 @@ class e_pref extends e_front_model
unset($new, $old);
}
// Backup
if($this->set_backup === true && e107::getDb()->gen("REPLACE INTO `#core` (e107_name,e107_value) values ('".$this->prefid."_Backup', '".addslashes($dbdata)."') "))
{
// trigger_error("Performing a pref backup", E_USER_NOTICE);
if(!$disallow_logs) $log->logMessage('Backup of <strong>'.$this->alias.' ('.$this->prefid.')</strong> successfully created.', E_MESSAGE_DEBUG, E_MESSAGE_SUCCESS, $session_messages);
e107::getCache()->clear_sys('Config_'.$this->alias.'_backup');
if(deftrue('e_DEBUG'))
@@ -655,6 +656,7 @@ class e_pref extends e_front_model
->flushMessages('LAN_FIXME', E_LOG_INFORMATIVE, '', $this->prefid);
e107::getMessage()->moveStack($this->prefid);
trigger_error("Settings not saved", E_USER_NOTICE);
return false;
}
else