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:
85ff8de
)
Moving pages seems to have been completely broken for unprotected titles; fixed that...
author
Aryeh Gregor
<simetrical@users.mediawiki.org>
Sun, 16 Dec 2007 19:57:40 +0000
(19:57 +0000)
committer
Aryeh Gregor
<simetrical@users.mediawiki.org>
Sun, 16 Dec 2007 19:57:40 +0000
(19:57 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
f632392
..
e10fe13
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-1253,7
+1253,8
@@
class Title {
/**
* Is this title subject to title protection?
/**
* Is this title subject to title protection?
- * @return array An associative array representing any existent title protection.
+ * @return mixed An associative array representing any existent title
+ * protection, or false if there's none.
*/
public function getTitleProtection() {
$dbr = wfGetDB( DB_SLAVE );
*/
public function getTitleProtection() {
$dbr = wfGetDB( DB_SLAVE );
@@
-2305,7
+2306,7
@@
class Title {
}
} else {
$tp = $nt->getTitleProtection();
}
} else {
$tp = $nt->getTitleProtection();
- if (
!$wgUser->isAllowed($tp['pt_create_perm'])
) {
+ if (
$tp and !$wgUser->isAllowed( $tp['pt_create_perm'] )
) {
return 'cantmove-titleprotected';
}
}
return 'cantmove-titleprotected';
}
}
@@
-2906,4
+2907,4
@@
class Title {
return Namespace::isContent( $this->getNamespace() );
}
return Namespace::isContent( $this->getNamespace() );
}
-}
\ No newline at end of file
+}