$title undefined in initialize
authorSam Reed <reedy@users.mediawiki.org>
Fri, 23 Jul 2010 20:35:44 +0000 (20:35 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 23 Jul 2010 20:35:44 +0000 (20:35 +0000)
Guessing it's supposed to be $this->mTitle

includes/Category.php

index e9ffaec..bbeb79b 100644 (file)
@@ -25,8 +25,9 @@ class Category {
         * @return bool True on success, false on failure.
         */
        protected function initialize() {
-               if ( $this->mName === null && $this->mTitle )
-                       $this->mName = $title->getDBkey();
+               if ( $this->mName === null && $this->mTitle ) {
+                       $this->mName = $this->mTitle->getDBkey();
+               }
 
                if ( $this->mName === null && $this->mID === null ) {
                        throw new MWException( __METHOD__ . ' has both names and IDs null' );