From 98fdf8110d313c320883cdeafd13849f8b123151 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Thu, 28 Jun 2007 22:00:13 +0000 Subject: [PATCH] Fix broken handling of log views for page titles consisting of one or more zeros, e.g. "0", "00" etc. --- RELEASE-NOTES | 2 ++ includes/SpecialLog.php | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2f28335376..80f357ffdd 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index e263813fb8..81a94e3888 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -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(); -- 2.20.1