* (bug 2630) Indicate no-longer-valid cached entries in BrokenRedirects list
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 30 Jun 2005 19:06:32 +0000 (19:06 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 30 Jun 2005 19:06:32 +0000 (19:06 +0000)
RELEASE-NOTES
includes/SpecialBrokenRedirects.php

index 5f7773e..7325501 100644 (file)
@@ -434,6 +434,8 @@ Various bugfixes, small features, and a few experimental things:
 * Copy fix for old search URLs with Lucene search plugin from REL1_4
 * (bug 619) Don't use incompatible diff3 executable on non-Linux systems.
 * (bug 2631) Fix Hebrew namespaces.
+* (bug 2630) Indicate no-longer-valid cached entries in BrokenRedirects list
+
 
 === Caveats ===
 
index baa8195..4101120 100644 (file)
@@ -65,8 +65,8 @@ class BrokenRedirectsPage extends PageQueryPage {
                }
 
                // $toObj may very easily be false if the $result list is cached
-               if ( !is_object( $toObj ) || !is_object( $fromObj ) ) {
-                       return '';
+               if ( !is_object( $toObj ) ) {
+                       return '<s>' . $skin->makeLinkObj( $fromObj ) . '</s>';
                }
 
                $from = $skin->makeKnownLinkObj( $fromObj ,'', 'redirect=no' );