summaryrefslogtreecommitdiff
path: root/includes/SpecialRandomredirect.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/SpecialRandomredirect.php')
-rw-r--r--includes/SpecialRandomredirect.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/SpecialRandomredirect.php b/includes/SpecialRandomredirect.php
index 512553c0..2cb2498b 100644
--- a/includes/SpecialRandomredirect.php
+++ b/includes/SpecialRandomredirect.php
@@ -45,7 +45,7 @@ function wfSpecialRandomredirect( $par = NULL ) {
# Catch dud titles and return to the main page
if( is_null( $title ) )
- $title = Title::newFromText( wfMsg( 'mainpage' ) );
+ $title = Title::newMainPage();
$wgOut->reportTime();
$wgOut->redirect( $title->getFullUrl( 'redirect=no' ) );