Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2970
UncategorizedimagesPatch.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:18 PM
2014-11-21 21:18:34 (UTC+0)
Size
3 KB
Referenced Files
None
Subscribers
None
UncategorizedimagesPatch.diff
View Options
Index: phase3/languages/MessagesFr.php
===================================================================
--- phase3/languages/MessagesFr.php (Revision 14800)
+++ phase3/languages/MessagesFr.php (Arbeitskopie)
@@ -772,6 +772,7 @@
'lonelypages' => 'Pages orphelines',
'uncategorizedpages' => 'Pages sans catégorie',
'uncategorizedcategories' => 'Catégories sans catégories',
+'uncategorizedimages' => 'Images non catégorisées',
'unusedcategories' => 'Catégories non utilisées',
'unusedimages' => 'Images orphelines',
'popularpages' => 'Pages les plus consultées',
Index: phase3/includes/SpecialUncategorizedimages.php
===================================================================
--- phase3/includes/SpecialUncategorizedimages.php (Revision 14800)
+++ phase3/includes/SpecialUncategorizedimages.php (Arbeitskopie)
@@ -1,55 +1,36 @@
<?php
+/**
+ *
+ * @package MediaWiki
+ * @subpackage SpecialPage
+ */
+require_once( "SpecialUncategorizedpages.php" );
+
/**
- * Special page lists images which haven't been categorised
*
* @package MediaWiki
- * @subpackage Special pages
- * @author Rob Church <robchur@gmail.com>
+ * @subpackage SpecialPage
*/
-
-class UncategorizedImagesPage extends QueryPage {
+class UncategorizedImagesPage extends UncategorizedPagesPage {
+ function UncategorizedImagesPage() {
+ $this->requestedNamespace = NS_IMAGE;
+ }
function getName() {
- return 'Uncategorizedimages';
+ return "Uncategorizedimages";
}
-
- function sortDescending() {
- return false;
- }
-
- function isExpensive() {
- return true;
- }
-
- function isSyndicated() {
- return false;
- }
-
- function getSQL() {
- $dbr =& wfGetDB( DB_SLAVE );
- extract( $dbr->tableNames( 'page', 'categorylinks' ) );
- $ns = NS_IMAGE;
-
- return "SELECT 'Uncategorizedimages' AS type, page_namespace AS namespace,
- page_title AS title, page_title AS value
- FROM {$page} LEFT JOIN {$categorylinks} ON page_id = cl_from
- WHERE cl_from IS NULL AND page_namespace = {$ns} AND page_is_redirect = 0";
- }
-
- function formatResult( &$skin, $row ) {
- global $wgContLang;
- $title = Title::makeTitleSafe( NS_IMAGE, $row->title );
- $label = htmlspecialchars( $wgContLang->convert( $title->getText() ) );
- return $skin->makeKnownLinkObj( $title, $label );
- }
-
}
+/**
+ * constructor
+ */
function wfSpecialUncategorizedimages() {
- $uip = new UncategorizedImagesPage();
list( $limit, $offset ) = wfCheckLimits();
- return $uip->doQuery( $offset, $limit );
+
+ $lpp = new UncategorizedImagesPage();
+
+ return $lpp->doQuery( $offset, $limit );
}
?>
Index: phase3/includes/QueryPage.php
===================================================================
--- phase3/includes/QueryPage.php (Revision 14800)
+++ phase3/includes/QueryPage.php (Arbeitskopie)
@@ -30,7 +30,7 @@
array( 'ShortPagesPage', 'Shortpages' ),
array( 'UncategorizedCategoriesPage', 'Uncategorizedcategories' ),
array( 'UncategorizedPagesPage', 'Uncategorizedpages' ),
- array( 'UncategorizedImagesPage', 'Uncategorizedimages' ),
+ array( 'UncategorizedImagesPage', 'Uncategorizedimages' ),
array( 'UnusedCategoriesPage', 'Unusedcategories' ),
array( 'UnusedimagesPage', 'Unusedimages' ),
array( 'WantedCategoriesPage', 'Wantedcategories' ),
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2540
Default Alt Text
UncategorizedimagesPatch.diff (3 KB)
Attached To
Mode
T8344: Uncategorized images special page
Attached
Detach File
Event Timeline
Log In to Comment