mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
part fix #2854 - load default prefs
- after installation plugin prefs doesn't exist
This commit is contained in:
@@ -103,6 +103,13 @@ class listclass
|
|||||||
{
|
{
|
||||||
return e107::pref('list_new'); //TODO Convert from old format to new.
|
return e107::pref('list_new'); //TODO Convert from old format to new.
|
||||||
|
|
||||||
|
//insert default preferences
|
||||||
|
if (empty( $listPrefs))
|
||||||
|
{
|
||||||
|
$listPrefs = $this->list_pref = $this->getDefaultPrefs();
|
||||||
|
e107::getPlugConfig('list_new')->reset()->setPref($listPrefs)->save(true);
|
||||||
|
}
|
||||||
|
return $listPrefs;
|
||||||
/*
|
/*
|
||||||
$sql = e107::getDb();
|
$sql = e107::getDb();
|
||||||
//check preferences from database
|
//check preferences from database
|
||||||
@@ -865,4 +872,4 @@ class listclass
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user