http://www.mediawiki.org/wiki/Special:Code/MediaWiki/84688
Revision: 84688
Author: ialex
Date: 2011-03-24 17:20:16 +0000 (Thu, 24 Mar 2011)
Log Message:
-----------
Follow-up r84686: removed now useless functions
Modified Paths:
--------------
trunk/extensions/DPLforum/DPLforum.php
trunk/extensions/DiscussionThreading/DiscussionThreading.php
trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php
trunk/extensions/QPoll/qp_user.php
trunk/extensions/SubPageList/SubPageList.php
Modified: trunk/extensions/DPLforum/DPLforum.php
===================================================================
--- trunk/extensions/DPLforum/DPLforum.php 2011-03-24 17:05:49 UTC (rev
84687)
+++ trunk/extensions/DPLforum/DPLforum.php 2011-03-24 17:20:16 UTC (rev
84688)
@@ -35,7 +35,6 @@
die( 1 );
}
-$wgExtensionFunctions[] = 'wfDPLforum';
$wgHooks['ParserFirstCallInit'][] = 'wfDPLinit';
$wgHooks['LanguageGetMagic'][] = 'wfDPLmagic';
$wgExtensionCredits['parserhook'][] = array(
@@ -51,10 +50,6 @@
$wgExtensionMessagesFiles['DPLforum'] = $dir . 'DPLforum.i18n.php';
$wgAutoloadClasses['DPLForum'] = $dir . 'DPLforum_body.php';
-function wfDPLforum() {
- // for compatibility with MW < 1.16
-}
-
function wfDPLinit( &$parser ) {
$parser->setHook( 'forum', 'parseForum' );
$parser->setFunctionHook( 'forumlink', array( new DPLForum(), 'link' )
);
Modified: trunk/extensions/DiscussionThreading/DiscussionThreading.php
===================================================================
--- trunk/extensions/DiscussionThreading/DiscussionThreading.php
2011-03-24 17:05:49 UTC (rev 84687)
+++ trunk/extensions/DiscussionThreading/DiscussionThreading.php
2011-03-24 17:20:16 UTC (rev 84688)
@@ -14,7 +14,6 @@
# Internationalisation file
$wgExtensionMessagesFiles['DiscussionThreading'] = dirname( __FILE__ ) .
'/DiscussionThreading.i18n.php';
-$wgExtensionFunctions[] = 'efDiscussionThreadSetup';
$wgExtensionCredits['other'][] = array(
'path' => __FILE__,
'name' => 'DiscussionThreading',
@@ -40,13 +39,6 @@
$wgHooks['DoEditSectionLink'][] = 'efDoDiscussionLink';
/**
- * Initial setup, add .i18n. messages from
$IP/extensions/DiscussionThreading/DiscussionThreading.i18n.php
-*/
-function efDiscussionThreadSetup() {
-
-}
-
-/**
* This function creates a linkobject for the editSectionLinkForOther function
in linker
*
* @param $callobj Article object.
Modified: trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php
===================================================================
--- trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php
2011-03-24 17:05:49 UTC (rev 84687)
+++ trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php
2011-03-24 17:20:16 UTC (rev 84688)
@@ -60,7 +60,6 @@
$wgAPIModules;
- mvfInitMessages();
//add the ALL page header
mvfAutoAllPageHeader();
@@ -420,15 +419,6 @@
$mvgLang = new $mvLangClass();
}
}
-/**
- * Initialize messages - these settings must be applied later on, since
- * the MessageCache does not exist yet when the settings are loaded in
- * LocalSettings.php.
- * Function based on version in ContributionScores extension
- */
-function mvfInitMessages() {
-
-}
/*
* Utility functions:
Modified: trunk/extensions/QPoll/qp_user.php
===================================================================
--- trunk/extensions/QPoll/qp_user.php 2011-03-24 17:05:49 UTC (rev 84687)
+++ trunk/extensions/QPoll/qp_user.php 2011-03-24 17:20:16 UTC (rev 84688)
@@ -171,18 +171,6 @@
$wgHooks['LoadAllMessages'][] = new qp_Setup;
}
- static function onLoadAllMessages() {
- if ( !self::$messagesLoaded ) {
- global $wgVersion;
- self::$messagesLoaded = true;
- # for MW 1.15 (still being used by many customers)
- if ( version_compare( $wgVersion, '1.16', '<' ) ) {
-
- }
- }
- return true;
- }
-
static function ParserFunctionsWords( $lang ) {
$words = array();
$words[ 'en' ] = array( 'qpuserchoice'=>array( 0,
'qpuserchoice' ) );
@@ -355,8 +343,6 @@
$this->ppframe = $frame;
$this->mRequest = &$wgRequest;
$this->mResponse = $wgRequest->response();
- # Determine which messages will be used, according to the
language.
- qp_Setup::onLoadAllMessages();
# load current skin
if ( self::$skin === null ) {
self::$skin = $wgUser->getSkin();
@@ -1265,7 +1251,6 @@
var $error_message = 'no_such_poll';
function qpuserchoice( &$parser, $frame, $args ) {
- qp_Setup::onLoadAllMessages();
$this->frame = &$frame;
$this->args = &$args;
if ( isset( $args[ 0 ] ) ) {
Modified: trunk/extensions/SubPageList/SubPageList.php
===================================================================
--- trunk/extensions/SubPageList/SubPageList.php 2011-03-24 17:05:49 UTC
(rev 84687)
+++ trunk/extensions/SubPageList/SubPageList.php 2011-03-24 17:20:16 UTC
(rev 84688)
@@ -69,20 +69,4 @@
$wgHooks['ArticleDeleteComplete'][] = 'SPLHooks::onArticleDeleteComplete';
$wgHooks['TitleMoveComplete'][] = 'SPLHooks::onTitleMoveComplete';
-$wgExtensionFunctions[] = 'efSPLSetup';
-
-/**
- * Initialization function.
- *
- * @since 0.1
- */
-function efSPLSetup() {
- global $wgVersion;
-
- // This function has been deprecated in 1.16, but needed for earlier
versions.
- if ( version_compare( $wgVersion, '1.16', '<' ) ) {
-
- }
-}
-
require_once 'SubPageList.settings.php';
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs