mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Moved new prefs from update_routines.php to default_install.xml
This commit is contained in:
parent
986633d117
commit
c0557966ec
@ -122,8 +122,6 @@ if (!$dont_check_update)
|
||||
$LAN_UPDATE_4 = deftrue('LAN_UPDATE_4',"Update from [x] to [y]"); // in case language-pack hasn't been upgraded.
|
||||
$LAN_UPDATE_5 = deftrue('LAN_UPDATE_5', "Core database structure");
|
||||
|
||||
$dbupdate['219_to_220'] = array('master'=>false, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('2.1.9','2.2.0')), 'message'=> null, 'hide_when_complete'=>true);
|
||||
|
||||
$dbupdate['218_to_219'] = array('master'=>false, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('2.1.8','2.1.9')), 'message'=> null, 'hide_when_complete'=>true);
|
||||
|
||||
$dbupdate['217_to_218'] = array('master'=>false, 'title'=> e107::getParser()->lanVars($LAN_UPDATE_4, array('2.1.7','2.1.8')), 'message'=> null, 'hide_when_complete'=>true);
|
||||
@ -566,21 +564,6 @@ function update_core_database($type = '')
|
||||
}
|
||||
|
||||
|
||||
function update_219_to_220($type='')
|
||||
{
|
||||
$sql = e107::getDb();
|
||||
$just_check = ($type == 'do') ? false : true;
|
||||
|
||||
// add new pref contact_privacypolicy
|
||||
if (!e107::getPref('contact_privacypolicy', ''))
|
||||
{
|
||||
e107::getConfig()->setPref('contact_privacypolicy', '')->save(false, true);
|
||||
}
|
||||
|
||||
return $just_check;
|
||||
}
|
||||
|
||||
|
||||
function update_218_to_219($type='')
|
||||
{
|
||||
$sql = e107::getDb();
|
||||
|
@ -149,6 +149,8 @@
|
||||
<core name="frontpage_force"><![CDATA[array (
|
||||
0 => '',
|
||||
)]]></core>
|
||||
<core name="gdpr_privacypolicy"></core>
|
||||
<core name="gdpr_termsandconditions"></core>
|
||||
<core name="html_abuse">0</core>
|
||||
<core name="im_height">80</core>
|
||||
<core name="im_path">/usr/X11R6/bin/</core>
|
||||
|
Loading…
x
Reference in New Issue
Block a user