added a language variant field to the page rendering hash, but only for languages...
[lhc/web/wiklou.git] / includes / QueryPage.php
index 5b1df4b..8b75eca 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 /**
  * Contain a class for special pages
+ * @package MediaWiki
  */
 
 /**
@@ -13,9 +14,10 @@ require_once ( 'Feed.php' );
  * we factor out some of the functionality into a superclass, and let
  * subclasses derive from it.
  *
+ * @package MediaWiki
  */
 class QueryPage {
-       
+
        /**
         * Subclasses return their name here. Make sure the name is also
         * specified in SpecialPage.php and in Language.php as a language message
@@ -27,7 +29,7 @@ class QueryPage {
 
        /**
         * Subclasses return an SQL query here.
-        * 
+        *
         * Note that the query itself should return the following four columns:
         * 'type' (your special page's name), 'namespace', 'title', and 'value'
         * *in that order*. 'value' is used for sorting.
@@ -74,7 +76,7 @@ class QueryPage {
        function formatResult( $skin, $result ) {
                return '';
        }
-               
+
        /**
         * The content returned by this function will be output before any result
        */
@@ -152,14 +154,14 @@ class QueryPage {
                        }
                }
                if ( $res === false ) {
-                       $res = $dbr->query( $sql . $this->getOrder() . 
+                       $res = $dbr->query( $sql . $this->getOrder() .
                                            $dbr->limitResult( $limit,$offset ), $fname );
                        $num = $dbr->numRows($res);
                }
 
 
                $sk = $wgUser->getSkin( );
-               
+
                $wgOut->addHTML( $this->getPageHeader() );
 
                $top = wfShowingResults( $offset, $num);
@@ -279,7 +281,7 @@ class QueryPage {
        }
 
        function feedDesc() {
-               return wfMsg( 'fromwikipedia' );
+               return wfMsg( 'tagline' );
        }
 
        function feedUrl() {
@@ -293,6 +295,8 @@ class QueryPage {
  * This is a subclass for very simple queries that are just looking for page
  * titles that match some criteria. It formats each result item as a link to
  * that page.
+ *
+ * @package MediaWiki
  */
 class PageQueryPage extends QueryPage {