1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Upgrade Routine: check for empty 'themecss' value and place style.css if necessary.

This commit is contained in:
Cameron
2017-05-08 18:28:15 -07:00
parent 7b76eb7ae1
commit ea9f998ed3

View File

@@ -594,6 +594,20 @@ function update_core_database($type = '')
e107::getPlugin()->refresh('social');
}
if(empty($pref['themecss'])) // FIX
{
if($just_check)
{
return update_needed("Theme CSS pref value is blank.");
}
e107::getConfig()->set('themecss','style.css')->save(false,true,false);
}
return $just_check;
// List of changed menu locations.