Merge "(bug 18195) Allow changing preferences via API"
[lhc/web/wiklou.git] / includes / User.php
index d3332fd..793714d 100644 (file)
@@ -2281,7 +2281,10 @@ class User {
         * Reset all options to the site defaults
         */
        public function resetOptions() {
+               $this->load();
+
                $this->mOptions = self::getDefaultOptions();
+               $this->mOptionsLoaded = true;
        }
 
        /**