Followup r78786, fix special wanted pages. Aliasing pages in left join doesn't work
authorSam Reed <reedy@users.mediawiki.org>
Wed, 22 Dec 2010 15:20:10 +0000 (15:20 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 22 Dec 2010 15:20:10 +0000 (15:20 +0000)
Trim some trailing whitespace too

includes/specials/SpecialWantedpages.php

index 2610069..8878d27 100644 (file)
@@ -30,7 +30,7 @@ class WantedPagesPage extends WantedQueryPage {
        function __construct( $name = 'Wantedpages' ) {
                parent::__construct( $name );
        }
-               
+
        function execute( $par ) {
                $inc = $this->including();
 
@@ -64,16 +64,16 @@ class WantedPagesPage extends WantedQueryPage {
                                                NS_MEDIAWIKI . "'" ),
                        'options' => array ( 'HAVING' => "COUNT(*) > $count",
                                'GROUP BY' => 'pl_namespace, pl_title' ),
-                       'join_conds' => array ( 'page AS pg1' => array (
+                       'join_conds' => array ( 'pg1' => array (
                                        'LEFT JOIN', array (
                                        'pg1.page_namespace = pl_namespace',
                                        'pg1.page_title = pl_title' ) ),
-                               'page AS pg2' => array ( 'LEFT JOIN',
+                               'pg2' => array ( 'LEFT JOIN',
                                        'pg2.page_id = pl_from' ) )
                );
                // Replacement WantedPages::getSQL
                wfRunHooks( 'WantedPages::getQueryInfo',
                                array( &$this, &$query ) );
                return $query;
-       }       
+       }
 }