dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29b840b
)
$title undefined in initialize
author
Sam Reed
<reedy@users.mediawiki.org>
Fri, 23 Jul 2010 20:35:44 +0000
(20:35 +0000)
committer
Sam 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
patch
|
blob
|
history
diff --git
a/includes/Category.php
b/includes/Category.php
index
e9ffaec
..
bbeb79b
100644
(file)
--- 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' );