From: Sam Reed Date: Fri, 23 Jul 2010 20:35:44 +0000 (+0000) Subject: $title undefined in initialize X-Git-Tag: 1.31.0-rc.0~35984 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=3455bbaec80014ea9a31f53a42b55af199f2a81e;p=lhc%2Fweb%2Fwiklou.git $title undefined in initialize Guessing it's supposed to be $this->mTitle --- diff --git a/includes/Category.php b/includes/Category.php index e9ffaecfca..bbeb79b37f 100644 --- a/includes/Category.php +++ b/includes/Category.php @@ -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' );