Index: trunk/phase3/includes/SpecialUncategorizedimages.php |
— | — | @@ -7,25 +7,25 @@ |
8 | 8 | * @subpackage Special pages |
9 | 9 | * @author Rob Church <robchur@gmail.com> |
10 | 10 | */ |
11 | | - |
| 11 | + |
12 | 12 | class UncategorizedImagesPage extends QueryPage { |
13 | 13 | |
14 | 14 | function getName() { |
15 | 15 | return 'Uncategorizedimages'; |
16 | 16 | } |
17 | | - |
| 17 | + |
18 | 18 | function sortDescending() { |
19 | 19 | return false; |
20 | 20 | } |
21 | | - |
| 21 | + |
22 | 22 | function isExpensive() { |
23 | 23 | return true; |
24 | 24 | } |
25 | | - |
| 25 | + |
26 | 26 | function isSyndicated() { |
27 | 27 | return false; |
28 | 28 | } |
29 | | - |
| 29 | + |
30 | 30 | function getSQL() { |
31 | 31 | $dbr =& wfGetDB( DB_SLAVE ); |
32 | 32 | list( $page, $categorylinks ) = $dbr->tableNamesN( 'page', 'categorylinks' ); |
— | — | @@ -36,14 +36,13 @@ |
37 | 37 | FROM {$page} LEFT JOIN {$categorylinks} ON page_id = cl_from |
38 | 38 | WHERE cl_from IS NULL AND page_namespace = {$ns} AND page_is_redirect = 0"; |
39 | 39 | } |
40 | | - |
| 40 | + |
41 | 41 | function formatResult( $skin, $row ) { |
42 | 42 | global $wgContLang; |
43 | 43 | $title = Title::makeTitleSafe( NS_IMAGE, $row->title ); |
44 | 44 | $label = htmlspecialchars( $wgContLang->convert( $title->getText() ) ); |
45 | 45 | return $skin->makeKnownLinkObj( $title, $label ); |
46 | 46 | } |
47 | | - |
48 | 47 | } |
49 | 48 | |
50 | 49 | function wfSpecialUncategorizedimages() { |