Fix pageExists when passed invalid title
authorChad Horohoe <chadh@wikimedia.org>
Thu, 26 Jun 2014 14:40:06 +0000 (07:40 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Thu, 26 Jun 2014 14:40:06 +0000 (07:40 -0700)
$title would end up null leading to broken output.

Change-Id: I349ec8aa15fa7e59ae198c2e4f92b3baa471ea23

maintenance/pageExists.php

index c4b208a..3bde81e 100644 (file)
@@ -41,7 +41,7 @@ class PageExists extends Maintenance {
                if ( $pageExists ) {
                        $text = "{$title} exists.";
                } else {
-                       $text = "{$title} doesn't exist.";
+                       $text = "{$titleArg} doesn't exist.";
                        $code = 1;
                }
                $this->output( $text );