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:
924d124
)
Fixed getUsablePages() to account for the fact that getPage() can return null
author
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 8 Oct 2011 00:16:31 +0000
(
00:16
+0000)
committer
Aaron Schulz
<aaron@users.mediawiki.org>
Sat, 8 Oct 2011 00:16:31 +0000
(
00:16
+0000)
includes/SpecialPageFactory.php
patch
|
blob
|
history
diff --git
a/includes/SpecialPageFactory.php
b/includes/SpecialPageFactory.php
index
eb19200
..
22aaa75
100644
(file)
--- a/
includes/SpecialPageFactory.php
+++ b/
includes/SpecialPageFactory.php
@@
-346,11
+346,9
@@
class SpecialPageFactory {
$pages = array();
foreach ( self::getList() as $name => $rec ) {
$page = self::getPage( $name );
- if ( $page->isListed()
- && (
- !$page->isRestricted()
- || $page->userCanExecute( $wgUser )
- )
+ if ( $page // not null
+ && $page->isListed()
+ && ( !$page->isRestricted() || $page->userCanExecute( $wgUser ) )
) {
$pages[$name] = $page;
}