Bump 1.25
[lhc/web/wiklou.git] / includes / Title.php
index a8d1bb8..74d78ba 100644 (file)
@@ -3765,7 +3765,12 @@ class Title {
                wfRunHooks( 'TitleMove', array( $this, $nt, $wgUser ) );
 
                $mp = new MovePage( $this, $nt );
-               return $mp->move( $wgUser, $reason, $createRedirect );
+               $status = $mp->move( $wgUser, $reason, $createRedirect );
+               if ( $status->isOK() ) {
+                       return true;
+               } else {
+                       return $status->getErrorsArray();
+               }
        }
 
        /**
@@ -4328,7 +4333,9 @@ class Title {
         * @return bool
         */
        public function exists() {
-               return $this->getArticleID() != 0;
+               $exists = $this->getArticleID() != 0;
+               wfRunHooks( 'TitleExists', array( $this, &$exists ) );
+               return $exists;
        }
 
        /**