From 3455bbaec80014ea9a31f53a42b55af199f2a81e Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Fri, 23 Jul 2010 20:35:44 +0000 Subject: [PATCH] $title undefined in initialize Guessing it's supposed to be $this->mTitle --- includes/Category.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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' ); -- 2.20.1