Accidently put into phase3/extensions instead of extensions. Idiot operator error
authorJack D. Pond <jdpond@users.mediawiki.org>
Fri, 11 Sep 2009 23:21:25 +0000 (23:21 +0000)
committerJack D. Pond <jdpond@users.mediawiki.org>
Fri, 11 Sep 2009 23:21:25 +0000 (23:21 +0000)
extensions/ConditionalShowSection/ConditionalShowSection.php [deleted file]
extensions/ConditionalShowSection/README [deleted file]
extensions/StringFunctionsEscaped/README [deleted file]
extensions/StringFunctionsEscaped/StringFunctionsEscaped.php [deleted file]

diff --git a/extensions/ConditionalShowSection/ConditionalShowSection.php b/extensions/ConditionalShowSection/ConditionalShowSection.php
deleted file mode 100644 (file)
index 10bf502..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<?php
-/*
- * ConditionalShowSection MediaWiki extension
- *
- * @author Jean-Lou Dupont
- * @package MediaWiki
- * @subpackage Extensions
- * @licence GNU General Public Licence 2.0
- * This extension enables to conditionally show/hide a section
- * of wikitext that appears between the <cshow> </cshow> tags.
- *
- * Add to LocalSettings.php
- * with: require_once("extensions/ConditionalShowSection/ConditionalShowSection.php");
- *
- * HISTORY:
- * 1.1: corrected bug when "ingroup" option not present, wrong results.
- * 1.2: used "recursiveTagParse" to get cleaner parsing.
- * 1.3: corrected error with default initialisation of userReqLogged
- * 1.4: changed to using 'getEffectiveGroups' in order to have also access
- *      to the implicit '*' group and the default group for logged users 'user'.
- * 1.5: Allow to check multiple groups - separated by ","
- */
-$wgExtensionCredits['other'][] = array(
-       'name'   => "ConditionalShowSection [http://www.bluecortex.com]",
-       'url'    => 'http://www.mediawiki.org/wiki/Extension:ConditionalShow',
-       'version'=> '1.5',
-       'author' => 'Jean-Lou Dupont [http://www.bluecortex.com]' 
-);
-
-if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
-       $wgHooks['ParserFirstCallInit'][] = 'wfConditionalShowSection';
-} else { // Otherwise do things the old fashioned way
-       $wgExtensionFunctions[] = 'wfConditionalShowSection';
-}
-
-function wfConditionalShowSection() {
-    global $wgParser;
-    $wgParser->setHook( "cshow", "ConditionalShowSection" );
-    return true;
-}
-function ConditionalShowSection( $input, $argv, &$parser ) {
-    #
-    # By default, the section is HIDDEN unless the following conditions are met:
-    # Argument: Logged = '1' or '0'  
-    # Argument: InGroup = 'group XYZ'
-    #
-    # If no arguments are provided for:
-    # - Logged   --> assume 'don't care' 
-    # - InGroup  --> assume ''           (no group)
-       #
-       # In other words, if no 'ingroup' parameter is given,
-       # then the condition 'ingroup' is never met.
-    #
-       # If no "logged" parameter is given, then this condition is always met.
-    # 
-    # Examples: <cshow Logged="1" InGroup="sysop"> text to show upon conditions met </cshow>
-    # if the user viewing the page is LOGGED and part of the SYSOP group then show the section.
-       #
-       # <cshow ingroup='user'> Test </cshow>
-       # shows 'Test' if the user viewing the page is logged and by default part of the 'user' group. 
-    #
-       global $wgUser;
-       $userReqLogged = null;   # default is "don't care"
-       $userReqGroup  = "" ;    # assuming no group membership required
-       $output = "";            # assuming the section is hidden by default.
-
-       $cond1 = false;                  
-       $cond2 = false;                  # by default, don't show the section to just anybody
-     
-       # Extract the parameters passed
-       # the parser lowers the case of all the parameters passed...
-       if (isset($argv["logged"]))
-       {
-               $userReqLogged = $argv["logged"];
-               if ($userReqLogged==="1" && ($wgUser->isLoggedIn()===true)) 
-                       $cond1=true;
-               if ($userReqLogged==="0" && ($wgUser->isLoggedIn()===false))
-                       $cond1=true;
-       } else $cond1=true;
-       if (isset($argv["ingroup"]))
-       {
-               $userReqGroup  = explode(',',$argv["ingroup"]);
-               # which groups is the user part of?
-               $ugroups = $wgUser->getEffectiveGroups();  // changed in v1.4
-               if(array_intersect($userReqGroup,$ugroups))
-                       $cond2=true;
-       } else $cond1=true;
-       # if both conditions are met, then SHOW else HIDE
-       if (($cond1===true) and ($cond2===true)){
-               $output=$parser->recursiveTagParse($input);
-       }
-       return $output;
-}
-?>
\ No newline at end of file
diff --git a/extensions/ConditionalShowSection/README b/extensions/ConditionalShowSection/README
deleted file mode 100644 (file)
index bf559f1..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-/*\r
- * ConditionalShowSection MediaWiki extension\r
- *\r
- * @author Jean-Lou Dupont\r
- * @package MediaWiki\r
- * @subpackage Extensions\r
- * @licence GNU General Public Licence 2.0\r
- * This extension enables to conditionally show/hide a section\r
- * of wikitext that appears between the <cshow> </cshow> tags.\r
- *\r
- * Add to LocalSettings.php\r
- * with: require_once("extensions/ConditionalShowSection/ConditionalShowSection.php");\r
- *\r
- * HISTORY:\r
- * 1.1: corrected bug when "ingroup" option not present, wrong results.\r
- * 1.2: used "recursiveTagParse" to get cleaner parsing.\r
- * 1.3: corrected error with default initialisation of userReqLogged\r
- * 1.4: changed to using 'getEffectiveGroups' in order to have also access\r
- *      to the implicit '*' group and the default group for logged users 'user'.\r
- * 1.5: Allow to check multiple groups - separated by ","\r
- */\r
-\r
-\r
-\r
-{{Extension|templatemode =\r
-|name          = ConditionalShow\r
-|status        = stable\r
-|type1         = tag\r
-|type2         = user rights \r
-|type3         = mywiki \r
-|hook1         = ParserFirstCallInit\r
-|hook2         =\r
-|username      = [[user:jldupont]]\r
-|author        =\r
-|description   = Conditionally show a wikitext section based on user group rights\r
-|image         =\r
-|imagesize     =\r
-|version       = 1.5\r
-|update        = 2009-09-10\r
-|mediawiki     = tested on 1.8.2, 1.9.3, 1.10, 1.14, 1.15, 1.16A\r
-|php           =\r
-|license       = GNU General Public Licence 2.0\r
-|download      = [http://wiki.jldupont.com/Extension:ConditionalContent http version <1.5]\r
-|readme        =\r
-|changelog     =\r
-|parameters    =\r
-|tags          = <cshow>,</cshow>\r
-|rights        =\r
-|example       =\r
-|compatibility =\r
-}}\r
-\r
-==What can this extension do?==\r
-This extension implementes the <nowiki><cshow></nowiki> tag which conditionally shows wikitext within the tags based on user group rights and certain other parameters.\r
-\r
-Using the tags should be to make the user experience less confusing or more useful by only showing information relevant to the user and specific groups that user belongs to.\r
-<div style="width: 80%; margin-left: auto; margin-right: auto; padding: 4px; border: 2px solid #FF0000; background-color: #FFDDDD; text-align: center;">\r
-'''PLEASE NOTE!!!'''\r
-\r
-This tag does not protect information or instructions from being disclosed to the reader.\r
-\r
-The user can still see the information by editing the page or even by "view source".  If you are looking to actually protect information, this is '''NOT''' the extension you want to use!\r
-\r
-This extension only helps you selectively show content or navigation based on groups the user belongs to.\r
-</div>\r
-==Note==\r
-\r
-This extension is not 'cache' friendly; if one requires this feature, then [[Extension:BizzWiki|BizzWiki platform]] provides a solution through [[Extension:ParserPhase2|Parser Phase 2 extension]].\r
-\r
-==Usage==\r
-\r
-Like other tags, this can be used two ways - by using the tag itself within wikitext, or by using the tag function within templates.\r
-\r
-If you are using it within normal wikitext, the <nowiki><cshow>. . .</cshow></nowiki>  syntax suffices.  If you are using it within a template, you will need to use the parser tag function as illustrated [[#Example within a Template | below]].\r
-\r
-===Example in Wikitext===\r
-By default, the section of wikitext within the tags is HIDDEN unless the conditions are met - in this case the user must be logged in and belong the group 'sysops'\r
-\r
-<pre>\r
-<cshow logged=1 ingroup='sysop'> This text will appear if a user with membership to 'sysop' group views this page</cshow>\r
-</pre>\r
-\r
-===Example within a Template===\r
-\r
-If you are using this within a template or as part of a template, you need to use the <nowiki>{{##tag: . . .}}</nowiki> syntax.\r
-\r
-<pre>\r
-{{#tag:cshow |\r
-This text will appear if a user with membership to 'sysop' group views this page\r
-| logged=1 ingroup='sysop'\r
-}}\r
-</pre>\r
-\r
-==Arguments==\r
-\r
-By default, the tagged section is HIDDEN unless the following conditions are met:\r
-* Argument: logged = '1' or '0'  \r
-* Argument: ingroup = 'group XYZ'  (Note, as of version 1.5, you can list multiple groups, e.g. 'sysop,approved'\r
-\r
-If no arguments are provided for:\r
-logged   --> assume 'don't care' \r
-innGroup  --> assume ''           (no group)\r
-\r
-In other words, if no 'ingroup' parameter is given, then the condition 'ingroup' is never met.\r
-\r
-If no "logged" parameter is given, then this condition is always met.\r
-\r
-==Download instructions==\r
-\r
-The current version is available from SVN.\r
-\r
-Source Code and additional information can also be found at [http://bluecortex.com/index.php?title=Bluecortex:ConditionalShow].\r
-The code should be loaded to:\r
-\r
-<code>$IP/extensions/ConditionalShowSection/ConditionalShowSection.php</code>.  ''Note: [[Manual:$IP|$IP]] stands for the root directory of your MediaWiki installation, the same directory that holds [[Manual:LocalSettings.php|LocalSettings.php]]''.\r
-\r
-==Installation==\r
-To install this extension, add the following to [[Manual:LocalSettings.php|LocalSettings.php]]:\r
-<source lang="php">\r
-require_once("$IP/extensions/ConditionalShowSection/ConditionalShowSection.php");\r
-</source>\r
-\r
-== Other Options ==\r
-* [[Extension:ConditionalContent]]\r
-\r
-[[Category:View page extensions]]\r
diff --git a/extensions/StringFunctionsEscaped/README b/extensions/StringFunctionsEscaped/README
deleted file mode 100644 (file)
index 18c5c38..0000000
+++ /dev/null
@@ -1,185 +0,0 @@
-{{Extension|templatemode=\r
-|name          = StringFunctionsEscaped\r
-|status        = beta\r
-|type1         = parser function\r
-|type2         =\r
-|hook1         = LanguageGetMagic\r
-|hook2         =\r
-|username      = [[user:jpond | Jack D. Pond ]]\r
-|author        = \r
-|description   = Defines a superset of string parser functions that allow character escaping in the 'search for' and 'replace with' arguments.\r
-|image         =\r
-|imagesize     =\r
-|version       = 1.0.0\r
-|update        = 2009-09-11\r
-|mediawiki     = Tested with 1.14,1.15,1.16A, Should work with all\r
-|php           =\r
-|license       = GNU Version 2\r
-|download      = \r
-|readme        =\r
-|changelog     =\r
-|parameters    = $wgPFEnableStringFunctions\r
-|tags          = \r
-|rights        = \r
-|example       =\r
-|compatibility =\r
-}}\r
-\r
-\r
-\r
-==What can this extension do?==\r
-\r
-Wikitext allows the imbedding of certain control characters (newline, tab, etc.).  These parser functions allow them to be identified and used with standard c-type escape character sequence (/n,/t, etc.).\r
-\r
-These can be used (among other things) to make infoblox-type templates much more WYSIWIG (see Examples) for novice/non-technical users.\r
-\r
-==Usage==\r
-\r
-These functions are all invoked exactly as their string parser functions would be (except with the '_e' appended to distinguish).\r
-\r
-===  pos_e: (string position)===\r
-\r
-<nowiki>{{#pos_e:value|key|offset}}</nowiki>\r
-\r
-Returns the first position of key inside the given value, or an empty string.\r
-If offset is defined, this method will not search the first offset characters.\r
-\r
-See: http://php.net/manual/function.strpos.php\r
-\r
-=== rpos_e: (string position, reverse) ===\r
-<nowiki>{{#rpos_e:value|key}}</nowiki>\r
-Returns the last position of key inside the given value, or -1 if the key is not found. When using this to search for the last delimiter, add +1 to the  result to retreive position after the last delimiter. This also works when the delimiter is not found, because "-1 + 1" is zero, which is the beginning of the given value.\r
-\r
-See: http://php.net/manual/function.strrpos.php\r
-\r
-=== pad_e: (pad string) ===\r
-<nowiki>{{#pad_e:value|length|with|direction}}</nowiki>\r
-\r
-Returns the value padded to the certain length with the given with string.\r
-If the with string is not given, spaces are used for padding. The direction may be specified as: 'left', 'center' or 'right'.\r
-\r
-See: http://php.net/manual/function.str-pad.php\r
-\r
-=== replace_e: (string replace) ===\r
-\r
-<nowiki>{{#replace_e:value|from|to}}</nowiki> \r
-\r
-Returns the given value with all occurences of 'from' replaced with 'to'.\r
-\r
-See: http://php.net/manual/function.str-replace.php\r
-\r
-=== explode_e: (explode string) ===\r
-<nowiki>{{#explode_e:value|delimiter|position}}</nowiki>\r
-\r
-Splits the given value into pieces by the given delimiter and returns the position-th piece. Empty string is returned if there are not enough pieces.\r
-\r
-Note: Pieces are counted from 0.<br>\r
-Note: A negative value can be used to count pieces from the end, instead of counting from the beginning. The last piece is at position -1.\r
-\r
-See: http://php.net/manual/function.explode.php\r
-\r
-==Download instructions==\r
-<!-- revise these instructions if code is available via a download site -->\r
-Please cut and paste the code found [[#Code|below]] and place it in <code>$IP/extensions/ExtensionName/ExtensionName.php</code>.  ''Note: [[Manual:$IP|$IP]] stands for the root directory of your MediaWiki installation, the same directory that holds [[Manual:LocalSettings.php|LocalSettings.php]]''.\r
-\r
-==Installation==\r
-String functions were integrated into [[Extension:ParserFunctions]] extension as of [[Special:Code/MediaWiki/50997|r50997]]. This revision of [[Extension:ParserFunctions]] is designed for MediaWiki 1.16, but updating to the trunk version may work on previous versions.  If you are using a prior version of [[Extension:ParserFunctions]], you will also have to include [[Extension:StringFunctions]].\r
-\r
-Install and test [[Extension:ParserFunctions]] and (if necessary) [[Extension:StringFunctions]] prior to installing this extension.\r
-\r
-This extension must be included AFTER the invocation of the string parser functions.\r
-To install this extension, add the following to [[Manual:LocalSettings.php|LocalSettings.php]]:\r
-\r
-=== For MediaWiki 1.15.1 and before ===\r
-<source lang="php">\r
-require_once("$IP/extensions/ParserFunctions/ParserFunctions.php");\r
-require_once("$IP/extensions/StringFunctions/StringFunctions.php");\r
-require_once("$IP/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php");\r
-</source>\r
-\r
-=== For MediaWiki 1.16a and after ===\r
-<source lang="php">\r
-require_once("$IP/extensions/ParserFunctions/ParserFunctions.php");\r
-$wgPFEnableStringFunctions = true;  // Note: this must be after ParserFunctions and before StringFunctionsEscaped\r
-require_once("$IP/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php");\r
-</source>\r
-==Examples==\r
-\r
-=== pos_e ===\r
-\r
-<pre>\r
-{{#pos_e:Line 1\r
-Line 2\r
-Line 3|\n|7}}\r
-\r
-Returns:\r
-\r
-13\r
-</pre>\r
-\r
-=== rpos_e ===\r
-<pre>\r
-{{#rpos_e:Line 1\r
-Line 2\r
-Line 3|\n}}\r
-\r
-Returns:\r
-\r
-13\r
-</pre>\r
-\r
-=== pad_e ===\r
-<pre>\r
-~~{{#pad_e:xox|9|\n|center}}~~\r
-\r
-Returns:\r
-\r
-~~ \r
-\r
-\r
-xox \r
-\r
-\r
-~~ \r
-</pre>\r
-\r
-=== replace_e ===\r
-<pre>\r
-{{#replace_e:Line 1\r
-Line 2\r
-Line 3|\n|<br>\n}}\r
-\r
-Returns:\r
-\r
-Line 1<br>\r
-Line 2<br>\r
-Line 3\r
-\r
-Which would display as:\r
-\r
-Line 1\r
-Line 2\r
-Line 3\r
-\r
-Rather than the unescaped:\r
-\r
-Line 1 Line 2 Line 3\r
-\r
-</pre>\r
-\r
-=== explode_e ===\r
-<pre>\r
-{{#explode_e:Line 1\r
-Line 2\r
-Line 3|\n|1}}\r
-\r
-Returns:\r
-\r
-Line 2\r
-\r
-</pre>\r
-==See also==\r
-\r
-* [[Extension:ParserFunctions]]\r
-* [[Extension:StringFunctions]]\r
-* [[Extension:Lua]]\r
diff --git a/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php b/extensions/StringFunctionsEscaped/StringFunctionsEscaped.php
deleted file mode 100644 (file)
index db38e9f..0000000
+++ /dev/null
@@ -1,163 +0,0 @@
-<?php
-if ( !defined( 'MEDIAWIKI' ) )
-       die( 'StringFunctionsEscaped::This file is a MediaWiki extension, it is not a valid entry point' );
-if ( !class_exists('ExtStringFunctions',false) && 
-        !(class_exists('ParserFunctions_HookStub',false) && isset($wgPFEnableStringFunctions) && $wgPFEnableStringFunctions))
-       die( 'StringFunctionsEscaped::You must have extension StringFunctions or extension ParserFunctions with string functions enabled' );
-/*
-
- Defines a superset of string parser functions that allow character escaping in the 'search for' and 'replace with' arguments.
-
- {{#pos_e:value|key|offset}}
-
- Returns the first position of key inside the given value, or an empty string.
- If offset is defined, this method will not search the first offset characters.
- See: http://php.net/manual/function.strpos.php
-
- {{#rpos_e:value|key}}
-
- Returns the last position of key inside the given value, or -1 if the key is
- not found. When using this to search for the last delimiter, add +1 to the
- result to retreive position after the last delimiter. This also works when
- the delimiter is not found, because "-1 + 1" is zero, which is the beginning
- of the given value.
- See: http://php.net/manual/function.strrpos.php
-
- {{#pad_e:value|length|with|direction}}
-
- Returns the value padded to the certain length with the given with string.
- If the with string is not given, spaces are used for padding. The direction
- may be specified as: 'left', 'center' or 'right'.
- See: http://php.net/manual/function.str-pad.php
-
-
- {{#replace_e:value|from|to}}
-
- Returns the given value with all occurences of 'from' replaced with 'to'.
- See: http://php.net/manual/function.str-replace.php
-
-
- {{#explode_e:value|delimiter|position}}
-
- Splits the given value into pieces by the given delimiter and returns the
- position-th piece. Empty string is returned if there are not enough pieces.
- Note: Pieces are counted from 0.
- Note: A negative value can be used to count pieces from the end, instead of
- counting from the beginning. The last piece is at position -1.
- See: http://php.net/manual/function.explode.php
-
-
- Copyright (c) 2009 Jack D. Pond
- Licensed under GNU version 2
-*/
-
-$wgExtensionCredits['parserhook'][] = array(
-       'path'            => __FILE__,
-       'name'            => 'StringFunctionsEscaped',
-       'version'         => '1.0.0', // Sept 7, 2009
-       'description'     => 'Allows escaped characters in string functions using c-like syntax',
-       'descriptionmsg'  => 'pfunc_desc',
-       'author'          => array('Jack D. Pond'),
-       'license'         => 'GNU Version 2',
-       'url'             => 'http://www.mediawiki.org/wiki/Extension:StringFunctionsEscaped',
-);
-
-$dir = dirname( __FILE__ ) . '/';
-# RFU
-# $wgExtensionMessagesFiles['StringFunctionsEscaped'] = $dir . 'StringFunctionsEscaped.i18n.php';
-
-$wgExtensionFunctions[] = 'wfStringFunctionsEscaped';
-
-$wgHooks['LanguageGetMagic'][] = 'wfStringFunctionsEscapedLanguageGetMagic';
-
-function wfStringFunctionsEscaped ( ) {
-       global $wgParser, $wgExtStringFunctionsEscaped;
-
-       $wgExtStringFunctionsEscaped = new ExtStringFunctionsEscaped ( );
-
-       $wgParser->setFunctionHook('pos_e',      array(&$wgExtStringFunctionsEscaped,'runPos_e'      ));
-       $wgParser->setFunctionHook('rpos_e',     array(&$wgExtStringFunctionsEscaped,'runRPos_e'     ));
-       $wgParser->setFunctionHook('pad_e',      array(&$wgExtStringFunctionsEscaped,'runPad_e'      ));
-       $wgParser->setFunctionHook('replace_e',  array(&$wgExtStringFunctionsEscaped,'runReplace_e'  ));
-       $wgParser->setFunctionHook('explode_e',  array(&$wgExtStringFunctionsEscaped,'runExplode_e'  ));
-}
-
-function wfStringFunctionsEscapedLanguageGetMagic( &$magicWords, $langCode = "en" ) {
-       switch ( $langCode ) {
-               default:
-               $magicWords['pos_e']          = array ( 0, 'pos_e' );
-               $magicWords['rpos_e']         = array ( 0, 'rpos_e' );
-               $magicWords['pad_e']          = array ( 0, 'pad_e' );
-               $magicWords['replace_e']      = array ( 0, 'replace_e' );
-               $magicWords['explode_e']      = array ( 0, 'explode_e' );
-       }
-       return true;
-}
-
-class ExtStringFunctionsEscaped {
-
-       /**
-        * {{#pos_e:value|key|offset}}
-        * Note: If the needle is an empty string, single space is used instead.
-        * Note: If the needle is not found, empty string is returned.
-        * Note: The needle is limited to specific length.
-        */
-       function runPos_e ( &$parser, $inStr = '', $inNeedle = '', $inOffset = 0 ) {
-               global $wgParser;
-               list($callback,$flags) = $wgParser->mFunctionHooks['pos'];
-               return @call_user_func_array( $callback,
-                       array_merge(array($parser),array($inStr,stripcslashes($inNeedle),$inOffset) ));
-       }
-
-       /**
-        * {{#rpos_e:value|key}}
-        * Note: If the needle is an empty string, single space is used instead.
-        * Note: If the needle is not found, -1 is returned.
-        * Note: The needle is limited to specific length.
-        */
-       function runRPos_e( &$parser, $inStr = '', $inNeedle = '' ) {
-               global $wgParser;
-               list($callback,$flags) = $wgParser->mFunctionHooks['rpos'];
-               return @call_user_func_array( $callback,
-                       array_merge(array($parser),array($inStr,stripcslashes($inNeedle)) ));
-       }
-
-       /**
-        * {{#pad_e:value|length|with|direction}}
-        * Note: Length of the resulting string is limited.
-        */
-       function runPad_e( &$parser, $inStr = '', $inLen = 0, $inWith = '', $inDirection = '' ) {
-               global $wgParser;
-               list($callback,$flags) = $wgParser->mFunctionHooks['pad'];
-               return @call_user_func_array( $callback,
-                       array_merge(array($parser),array($inStr, $inLen , stripcslashes($inWith), $inDirection) ));
-       }
-
-       /**
-        * {{#replace:value|from|to}}
-        * Note: If the needle is an empty string, single space is used instead.
-        * Note: The needle is limited to specific length.
-        * Note: The product is limited to specific length.
-        */
-       function runReplace_e( $parser, $inStr = '', $inReplaceFrom = '', $inReplaceTo = '' ) {
-               global $wgParser;
-               list($callback,$flags) = $wgParser->mFunctionHooks['replace'];
-               return @call_user_func_array( $callback,
-                       array_merge(array($parser),array($inStr, stripcslashes($inReplaceFrom), stripcslashes($inReplaceTo)) ));
-       }
-
-       /**
-        * {{#explode_e:value|delimiter|position}}
-        * Note: Negative position can be used to specify tokens from the end.
-        * Note: If the divider is an empty string, single space is used instead.
-        * Note: The divider is limited to specific length.
-        * Note: Empty string is returned, if there is not enough exploded chunks.
-        */
-       function runExplode_e ( &$parser, $inStr = '', $inDiv = '', $inPos = 0 ) {
-               global $wgParser;
-               list($callback,$flags) = $wgParser->mFunctionHooks['explode'];
-               return @call_user_func_array( $callback,
-                       array_merge(array($parser),array($inStr, stripcslashes($inDiv), $inPos) ));
-       }
-
-}