Index: trunk/phase3/includes/Category.php |
— | — | @@ -25,8 +25,9 @@ |
26 | 26 | * @return bool True on success, false on failure. |
27 | 27 | */ |
28 | 28 | protected function initialize() { |
29 | | - if ( $this->mName === null && $this->mTitle ) |
30 | | - $this->mName = $title->getDBkey(); |
| 29 | + if ( $this->mName === null && $this->mTitle ) { |
| 30 | + $this->mName = $this->mTitle->getDBkey(); |
| 31 | + } |
31 | 32 | |
32 | 33 | if ( $this->mName === null && $this->mID === null ) { |
33 | 34 | throw new MWException( __METHOD__ . ' has both names and IDs null' ); |