mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 22:57:14 +02:00
Merge pull request #2872 from Jimmi08/patch-1
Partial fix #2854 - load default prefs
This commit is contained in:
@@ -101,8 +101,15 @@ class listclass
|
|||||||
*/
|
*/
|
||||||
function getListPrefs()
|
function getListPrefs()
|
||||||
{
|
{
|
||||||
return e107::pref('list_new'); //TODO Convert from old format to new.
|
$listPrefs = 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
|
||||||
|
Reference in New Issue
Block a user