* [MOD] Set default user's preferences on demo mode

This commit is contained in:
nuxsmin
2017-04-13 21:03:19 +02:00
parent a11e8c25f2
commit ffe3e8e43d
5 changed files with 12 additions and 10 deletions

View File

@@ -231,11 +231,11 @@ class UserPreferencesData
* @return void
* @link http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.sleep
*/
function __wakeup()
public function __wakeup()
{
// Para realizar la conversión de nombre de propiedades que empiezan por _
foreach (get_object_vars($this) as $name => $value) {
if (substr($name, 0, 1) === '_') {
if (strpos($name, '_') === 0) {
$newName = substr($name, 1);
$this->$newName = $value;