1
0
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:
Cameron
2017-11-20 10:30:16 -08:00
committed by GitHub

View File

@@ -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