Merge "Replace very trivial mock builders with createMock()"
[lhc/web/wiklou.git] / includes / specials / SpecialLongpages.php
index cd0f309..d90d271 100644 (file)
  * @ingroup SpecialPage
  */
 class LongPagesPage extends ShortPagesPage {
-
-       function getName() {
-               return "Longpages";
+       function __construct( $name = 'Longpages' ) {
+               parent::__construct( $name );
        }
 
        function sortDescending() {
                return true;
        }
-}
 
-/**
- * constructor
- */
-function wfSpecialLongpages() {
-       list( $limit, $offset ) = wfCheckLimits();
-
-       $lpp = new LongPagesPage();
-
-       $lpp->doQuery( $offset, $limit );
+       protected function getGroupName() {
+               return 'maintenance';
+       }
 }