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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user