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:
09a414a
)
Fix bad title detection again; was dying with error on whitelist check
author
Brion Vibber
<brion@users.mediawiki.org>
Sun, 30 May 2004 06:44:47 +0000
(06:44 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sun, 30 May 2004 06:44:47 +0000
(06:44 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
8655997
..
97a7f12
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-48,7
+48,7
@@
wfProfileOut( "main-misc-setup" );
# If the user is not logged in, the Namespace:title of the article must be in
# the Read array in order for the user to see it. (We have to check here to
# catch special pages etc. We check again in Article::view())
-if ( !$wgTitle->userCanRead() ) {
+if ( !
is_null( $wgTitle ) && !
$wgTitle->userCanRead() ) {
$wgOut->loginToUse();
$wgOut->output();
exit;