From fc96f897f543c1cfafc0e63f3e8600d8568324a1 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Mon, 1 Aug 2005 23:30:48 +0000 Subject: [PATCH] oh well... --- includes/SpecialAllpages.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index caaf74f69e..a735b9cfb9 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -220,10 +220,12 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) { $sk = $wgUser->getSkin(); - $fromTitle = Title::newFromURL( $from ); - $fromNS = $fromTitle->getNamespace(); - if ($namespace == NS_MAIN) - $namespace = $fromNS; + if ($from!="") { + $fromTitle = Title::newFromURL( $from ); + $fromNS = $fromTitle->getNamespace(); + if ($namespace == NS_MAIN) + $namespace = $fromNS; + } $fromKey = is_null( $fromTitle ) ? '' : $fromTitle->getDBkey(); $dbr =& wfGetDB( DB_SLAVE ); -- 2.20.1