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

part fix #2854 - load default prefs

- after installation plugin prefs doesn't exist
This commit is contained in:
Jimako
2017-11-17 15:37:01 +01:00
committed by GitHub
parent 43f2a70b40
commit 65e940fad3

View File

@@ -103,6 +103,13 @@ class listclass
{
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();
//check preferences from database
@@ -865,4 +872,4 @@ class listclass
}
}
?>
?>