Page MenuHomePhabricator

Patch_SpecialFewestrevions_show_redirects.diff

Authored By
bzimport
Nov 21 2014, 9:41 PM
Size
952 B
Referenced Files
None
Subscribers
None

Patch_SpecialFewestrevions_show_redirects.diff

Index: SpecialFewestrevisions.php
===================================================================
--- SpecialFewestrevisions.php (revision 21849)
+++ SpecialFewestrevisions.php (working copy)
@@ -28,11 +28,12 @@
return "SELECT 'Fewestrevisions' as type,
page_namespace as namespace,
page_title as title,
+ page_is_redirect as redirect,
COUNT(*) as value
FROM $revision
JOIN $page ON page_id = rev_page
WHERE page_namespace = " . NS_MAIN . "
- GROUP BY 1,2,3
+ GROUP BY 1,2,3,4
HAVING COUNT(*) > 1";
}
@@ -50,8 +51,8 @@
$nl = wfMsgExt( 'nrevisions', array( 'parsemag', 'escape'),
$wgLang->formatNum( $result->value ) );
- $nlink = $skin->makeKnownLinkObj( $nt, $nl, 'action=history' );
-
+ $redirect = $result->redirect ? ' - ' . wfMsg( 'isredirect' ) : '';
+ $nlink = $skin->makeKnownLinkObj( $nt, $nl, 'action=history' ) . $redirect;
return wfSpecialList( $plink, $nlink );
}
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3497
Default Alt Text
Patch_SpecialFewestrevions_show_redirects.diff (952 B)

Event Timeline