Add wfErrorLog() call before throwing an exception in readStyleFile
[lhc/web/wiklou.git] / includes / AuthPlugin.php
index 9cdd4f3..2e42439 100644 (file)
  * someone logs in who can be authenticated externally.
  */
 class AuthPlugin {
+
+       /**
+        * @var string
+        */
+       protected $domain;
+
        /**
         * Check whether there exists a user account with the given name.
         * The name will be normalized to MediaWiki's requirements, so
@@ -89,7 +95,7 @@ class AuthPlugin {
         * @return string
         */
        public function getDomain() {
-               if ( $this->domain ) {
+               if ( isset( $this->domain ) ) {
                        return $this->domain;
                } else {
                        return 'invaliddomain';
@@ -170,6 +176,15 @@ class AuthPlugin {
                return true;
        }
 
+       /**
+        * Should MediaWiki store passwords in its local database?
+        *
+        * @return bool
+        */
+       public function allowSetLocalPassword() {
+               return true;
+       }
+
        /**
         * Set the given password in the authentication database.
         * As a special case, the password may be set to null to request