php's on crack.
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 25 Apr 2005 09:32:06 +0000 (09:32 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 25 Apr 2005 09:32:06 +0000 (09:32 +0000)
includes/SpecialMovepage.php

index 68b8a11..7a86dbe 100644 (file)
@@ -82,7 +82,10 @@ class MovePageForm {
                                        # If a title was supplied, probably from the move log revert
                                        # link, check for validity. We can then show some diagnostic
                                        # information and save a click.
-                                       $err = $ot->isValidMoveOperation( $nt );
+                                       $newerr = $ot->isValidMoveOperation( $nt );
+                                       if( is_string( $newerr ) ) {
+                                               $err = $newerr;
+                                       }
                                }
                        }
                        $encNewTitle = htmlspecialchars( $this->newTitle );