Fix broken handling of log views for page titles consisting of one or more zeros...
authorRob Church <robchurch@users.mediawiki.org>
Thu, 28 Jun 2007 22:00:13 +0000 (22:00 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Thu, 28 Jun 2007 22:00:13 +0000 (22:00 +0000)
RELEASE-NOTES
includes/SpecialLog.php

index 2f28335..80f357f 100644 (file)
@@ -232,6 +232,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Delay AJAX watch initialization until click so IE 6 with ugly security
   settings doesn't prompt you until you use the link.
 * (bug 10401) Provide non-redirecting link to original title in Special:Movepage
+* Fix broken handling of log views for page titles consisting of one
+  or more zeros, e.g. "0", "00" etc.
 
 == API changes since 1.10 ==
 
index e263813..81a94e3 100644 (file)
@@ -124,9 +124,10 @@ class LogReader {
        function limitTitle( $page , $pattern ) {
                global $wgMiserMode;
                $title = Title::newFromText( $page );
-               if( empty( $page ) || is_null( $title )  ) {
+               
+               if( strlen( $page ) == 0 || !$title instanceof Title )
                        return false;
-               }
+
                $this->title =& $title;
                $this->pattern = $pattern;
                $ns = $title->getNamespace();