Do not insert page titles into querycache.qc_value
[lhc/web/wiklou.git] / includes / specials / SpecialUncategorizedimages.php
index 1cb27a3..7e89389 100644 (file)
@@ -45,17 +45,28 @@ class UncategorizedImagesPage 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',
+                               ],
+                       ],
                ];
        }