X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUncategorizedImages.php;h=67a2edb4ab1b07389d04df31929d23e93c2f130d;hp=9dcd1bdd35bd37d2151948d029da3c61d5a86185;hb=9c7f6734c397a954b8eaa5ec73876f2b4bf92afb;hpb=5b8a12363dea7640a9e59234cd64d5b890762982 diff --git a/includes/specials/SpecialUncategorizedImages.php b/includes/specials/SpecialUncategorizedImages.php index 9dcd1bdd35..67a2edb4ab 100644 --- a/includes/specials/SpecialUncategorizedImages.php +++ b/includes/specials/SpecialUncategorizedImages.php @@ -46,17 +46,28 @@ class SpecialUncategorizedImages extends ImageQueryPage { return false; } + function getOrderFields() { + return [ 'title' ]; + } + function getQueryInfo() { return [ 'tables' => [ 'page', 'categorylinks' ], - 'fields' => [ 'namespace' => 'page_namespace', + 'fields' => [ + 'namespace' => 'page_namespace', 'title' => 'page_title', - 'value' => 'page_title' ], - 'conds' => [ 'cl_from IS NULL', + ], + 'conds' => [ + 'cl_from IS NULL', 'page_namespace' => NS_FILE, - 'page_is_redirect' => 0 ], - 'join_conds' => [ 'categorylinks' => [ - 'LEFT JOIN', 'cl_from=page_id' ] ] + 'page_is_redirect' => 0, + ], + 'join_conds' => [ + 'categorylinks' => [ + 'LEFT JOIN', + 'cl_from=page_id', + ], + ], ]; }