From: Happy-melon Date: Tue, 19 Apr 2011 10:11:16 +0000 (+0000) Subject: Follow-up r86347: fix undefined variable by actually returning the type suggested... X-Git-Tag: 1.31.0-rc.0~30711 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=2ed656a1c04db07865dd306bac82f591fbc9dcd9;p=lhc%2Fweb%2Fwiklou.git Follow-up r86347: fix undefined variable by actually returning the type suggested in the documentation. --- diff --git a/includes/SpecialPageFactory.php b/includes/SpecialPageFactory.php index 330d61e2fe..0da2956442 100644 --- a/includes/SpecialPageFactory.php +++ b/includes/SpecialPageFactory.php @@ -446,7 +446,7 @@ class SpecialPageFactory { $url = $title->getFullUrl( $query ); $context->output->redirect( $url ); wfProfileOut( __METHOD__ ); - return $redirect; + return $title; } else { $context->title = $page->getTitle(); }