API: Change acprop description to allow for future expansion
[lhc/web/wiklou.git] / includes / SpecialPage.php
index af58c47..c9380ba 100644 (file)
  * @addtogroup SpecialPage
  */
 
-/**
- * @access private
- */
-
 /**
  * Parent special page class, also static functions for handling the special
  * page list.
@@ -138,6 +134,7 @@ class SpecialPage
                'Unlockdb'                  => array( 'SpecialPage', 'Unlockdb', 'siteadmin' ),
                'Userrights'                => 'UserrightsPage',
                'MIMEsearch'                => array( 'SpecialPage', 'MIMEsearch' ),
+               'FileDuplicateSearch'       => array( 'SpecialPage', 'FileDuplicateSearch' ),
                'Unwatchedpages'            => array( 'SpecialPage', 'Unwatchedpages', 'unwatchedpages' ),
                'Listredirects'             => array( 'SpecialPage', 'Listredirects' ),
                'Revisiondelete'            => array( 'UnlistedSpecialPage', 'Revisiondelete', 'deleterevision' ),
@@ -152,7 +149,6 @@ class SpecialPage
                'Listadmins'                => array( 'SpecialRedirectToSpecial', 'Listadmins', 'Listusers', 'sysop' ),
                'MergeHistory'              => array( 'SpecialPage', 'MergeHistory', 'mergehistory' ),
                'Listbots'                  => array( 'SpecialRedirectToSpecial', 'Listbots', 'Listusers', 'bot' ),
-               'API'                       => array( 'SpecialAPI' ),
                );
 
        static public $mAliases;
@@ -688,9 +684,10 @@ class SpecialPage
                global $wgOut, $wgContLang;
 
                $msg = $wgContLang->lc( $this->name() ) . '-summary';
-               $out = wfMsg( $msg );
-               if ( ! wfEmptyMsg( $msg, $out ) and  $out !== '' and ! $this->including() )
+               $out = wfMsgNoTrans( $msg );
+               if ( ! wfEmptyMsg( $msg, $out ) and  $out !== '' and ! $this->including() ) {
                        $wgOut->addWikiText( $out );
+               }
 
        }
 
@@ -849,19 +846,3 @@ class SpecialMycontributions extends UnlistedSpecialPage {
                return SpecialPage::getTitleFor( 'Contributions', $wgUser->getName() );
        }
 }
-
-/**
- * Shortcut to api.php
- *
- * Unfortunately we can't use SpecialRedirectToSpecial here
- */
-class SpecialAPI extends UnlistedSpecialPage {
-       function __construct() {
-               parent::__construct('API');
-       }
-       
-       function execute($par) {
-               global $wgScriptPath, $wgOut;
-               $wgOut->redirect("$wgScriptPath/api.php?$par");
-       }
-}