https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114762

Revision: 114762
Author:   tstarling
Date:     2012-04-06 05:06:27 +0000 (Fri, 06 Apr 2012)
Log Message:
-----------
File moves for extension rename, and removed unused directory

Added Paths:
-----------
    trunk/extensions/Scribunto/Scribunto.i18n.php
    trunk/extensions/Scribunto/Scribunto.magic.php
    trunk/extensions/Scribunto/Scribunto.namespaces.php
    trunk/extensions/Scribunto/Scribunto.php

Removed Paths:
-------------
    trunk/extensions/Scribunto/Scripting.i18n.php
    trunk/extensions/Scribunto/Scripting.magic.php
    trunk/extensions/Scribunto/Scripting.namespaces.php
    trunk/extensions/Scribunto/Scripting.php
    trunk/extensions/Scribunto/i18n/

Copied: trunk/extensions/Scribunto/Scribunto.i18n.php (from rev 114761, 
trunk/extensions/Scribunto/Scripting.i18n.php)
===================================================================
--- trunk/extensions/Scribunto/Scribunto.i18n.php                               
(rev 0)
+++ trunk/extensions/Scribunto/Scribunto.i18n.php       2012-04-06 05:06:27 UTC 
(rev 114762)
@@ -0,0 +1,25 @@
+<?php
+/**
+ * Internationalisation file for extension Scribunto.
+ *
+ * @file
+ * @ingroup Extensions
+ */
+
+$messages = array();
+
+/** English
+ * @author Victor Vasiliev
+ */
+$messages['en'] = array(
+       'scribunto-desc' => 'Framework for embedding scripting languages into 
MediaWiki pages',
+       'scribunto-codelocation' => 'in $1 at line $2',
+       'scribunto-luasandbox-error' => 'Lua error: $2',
+       'scribunto-common-toofewargs' => 'Lua error: Too few arguments to 
function $2',
+       'scribunto-common-nosuchmodule' => 'Script error: No such module',
+       'scribunto-luasandbox-noreturn' => 'Script error: The module did not 
return a value, it should return an export table.',
+       'scribunto-luasandbox-toomanyreturns' => 'Script error: The module 
returned multiple values, it should return an export table.',
+       'scribunto-luasandbox-notarrayreturn' => 'Script error: The module 
returned something other than a table, it should return an export table.',
+       'scribunto-common-nofunction' => 'Script error: You must specify a 
function to call.',
+       'scribunto-common-nosuchfunction' => 'Script error: The function you 
specified did not exist.',
+);

Copied: trunk/extensions/Scribunto/Scribunto.magic.php (from rev 114760, 
trunk/extensions/Scribunto/Scripting.magic.php)
===================================================================
--- trunk/extensions/Scribunto/Scribunto.magic.php                              
(rev 0)
+++ trunk/extensions/Scribunto/Scribunto.magic.php      2012-04-06 05:06:27 UTC 
(rev 114762)
@@ -0,0 +1,9 @@
+<?php
+
+$magicWords = array();
+
+$magicWords['en'] = array(
+       'invoke' => array( 0, 'invoke' ),
+       'script' => array( 0, 'script' ),
+);
+

Copied: trunk/extensions/Scribunto/Scribunto.namespaces.php (from rev 114760, 
trunk/extensions/Scribunto/Scripting.namespaces.php)
===================================================================
--- trunk/extensions/Scribunto/Scribunto.namespaces.php                         
(rev 0)
+++ trunk/extensions/Scribunto/Scribunto.namespaces.php 2012-04-06 05:06:27 UTC 
(rev 114762)
@@ -0,0 +1,8 @@
+<?php
+
+$namespaceNames = array();
+
+$namespaceNames['en'] = array(
+       NS_MODULE       => 'Module',
+       NS_MODULE_TALK  => 'Module_talk',
+);

Copied: trunk/extensions/Scribunto/Scribunto.php (from rev 114761, 
trunk/extensions/Scribunto/Scripting.php)
===================================================================
--- trunk/extensions/Scribunto/Scribunto.php                            (rev 0)
+++ trunk/extensions/Scribunto/Scribunto.php    2012-04-06 05:06:27 UTC (rev 
114762)
@@ -0,0 +1,102 @@
+<?php
+/**
+ * Wikitext scripting infrastructure for MediaWiki.
+ * Copyright (C) 2009-2012 Victor Vasiliev <[email protected]>
+ * http://www.mediawiki.org/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * http://www.gnu.org/copyleft/gpl.html
+ */
+
+if( !defined( 'MEDIAWIKI' ) )
+       die();
+
+$wgExtensionCredits['parserhook']['Scribunto'] = array(
+       'path'           => __FILE__,
+       'name'           => 'Scribunto',
+       'author'         => 'Victor Vasiliev',
+       'descriptionmsg' => 'scribunto-desc',
+       'url'            => 
'https://www.mediawiki.org/wiki/Extension:Scribunto',
+);
+
+$dir = dirname(__FILE__) . '/';
+$wgExtensionMessagesFiles['Scribunto'] = $dir . 'Scribunto.i18n.php';
+$wgExtensionMessagesFiles['ScribuntoMagic'] = $dir . 'Scribunto.magic.php';
+$wgExtensionMessagesFiles['ScribuntoNamespaces'] = $dir . 
'Scribunto.namespaces.php';
+
+$wgAutoloadClasses['ScribuntoEngineBase'] = $dir.'common/Base.php';
+$wgAutoloadClasses['ScribuntoModuleBase'] = $dir.'common/Base.php';
+$wgAutoloadClasses['ScribuntoFunctionBase'] = $dir.'common/Base.php';
+$wgAutoloadClasses['ScribuntoHooks'] = $dir.'common/Hooks.php';
+$wgAutoloadClasses['ScribuntoException'] = $dir.'common/Common.php';
+$wgAutoloadClasses['Scribunto'] = $dir.'common/Common.php';
+
+$wgHooks['ParserFirstCallInit'][] = 'ScribuntoHooks::setupParserHook';
+$wgHooks['ParserLimitReport'][] = 'ScribuntoHooks::reportLimits';
+$wgHooks['ParserClearState'][] = 'ScribuntoHooks::clearState';
+
+$wgHooks['CanonicalNamespaces'][] = 'ScribuntoHooks::addCanonicalNamespaces';
+$wgHooks['ArticleViewCustom'][] = 'ScribuntoHooks::handleScriptView';
+$wgHooks['TitleIsWikitextPage'][] = 'ScribuntoHooks::isWikitextPage';
+$wgHooks['CodeEditorGetPageLanguage'][] = 'ScribuntoHooks::getCodeLanguage';
+$wgHooks['EditFilter'][] = 'ScribuntoHooks::validateScript';
+
+/***** Individual engines and their configurations *****/
+
+$wgAutoloadClasses['LuaSandboxEngine'] = $dir.'engines/LuaSandbox/Engine.php';
+
+/***** Configuration *****/
+
+/**
+ * The name of the default script engine.
+ */
+$wgScribuntoDefaultEngine = 'luasandbox';
+
+/**
+ * Configuration for each script engine
+ */
+$wgScribuntoEngineConf = array(
+       'luasandbox' => array(
+               'class' => 'LuaSandboxEngine',
+               'memoryLimit' => 50 * 1024 * 1024,
+               'cpuLimit' => 7,
+       ),
+);
+
+/**
+ * Script namespace numbers.
+ */
+$wgScribuntoNamespaceNumbers = array(
+       'Module' => 20,
+       'Module_talk' => 21,
+);
+
+/**
+ * Turn on to true if SyntaxHighlight_GeSHi extension is enabled.
+ */
+$wgScribuntoUseGeSHi = false;
+
+/**
+ * Turn on to true if CodeEditor extension is enabled.
+ */
+$wgScribuntoUseCodeEditor = false;
+
+function efDefineScribuntoNamespace() {
+       global $wgScribuntoNamespaceNumbers;
+       define( 'NS_MODULE', $wgScribuntoNamespaceNumbers['Module'] );
+       define( 'NS_MODULE_TALK', $wgScribuntoNamespaceNumbers['Module_talk'] );
+}
+
+$wgExtensionFunctions[] = 'efDefineScribuntoNamespace';

Deleted: trunk/extensions/Scribunto/Scripting.i18n.php
===================================================================
--- trunk/extensions/Scribunto/Scripting.i18n.php       2012-04-06 05:04:30 UTC 
(rev 114761)
+++ trunk/extensions/Scribunto/Scripting.i18n.php       2012-04-06 05:06:27 UTC 
(rev 114762)
@@ -1,25 +0,0 @@
-<?php
-/**
- * Internationalisation file for extension Scribunto.
- *
- * @file
- * @ingroup Extensions
- */
-
-$messages = array();
-
-/** English
- * @author Victor Vasiliev
- */
-$messages['en'] = array(
-       'scribunto-desc' => 'Framework for embedding scripting languages into 
MediaWiki pages',
-       'scribunto-codelocation' => 'in $1 at line $2',
-       'scribunto-luasandbox-error' => 'Lua error: $2',
-       'scribunto-common-toofewargs' => 'Lua error: Too few arguments to 
function $2',
-       'scribunto-common-nosuchmodule' => 'Script error: No such module',
-       'scribunto-luasandbox-noreturn' => 'Script error: The module did not 
return a value, it should return an export table.',
-       'scribunto-luasandbox-toomanyreturns' => 'Script error: The module 
returned multiple values, it should return an export table.',
-       'scribunto-luasandbox-notarrayreturn' => 'Script error: The module 
returned something other than a table, it should return an export table.',
-       'scribunto-common-nofunction' => 'Script error: You must specify a 
function to call.',
-       'scribunto-common-nosuchfunction' => 'Script error: The function you 
specified did not exist.',
-);

Deleted: trunk/extensions/Scribunto/Scripting.magic.php
===================================================================
--- trunk/extensions/Scribunto/Scripting.magic.php      2012-04-06 05:04:30 UTC 
(rev 114761)
+++ trunk/extensions/Scribunto/Scripting.magic.php      2012-04-06 05:06:27 UTC 
(rev 114762)
@@ -1,9 +0,0 @@
-<?php
-
-$magicWords = array();
-
-$magicWords['en'] = array(
-       'invoke' => array( 0, 'invoke' ),
-       'script' => array( 0, 'script' ),
-);
-

Deleted: trunk/extensions/Scribunto/Scripting.namespaces.php
===================================================================
--- trunk/extensions/Scribunto/Scripting.namespaces.php 2012-04-06 05:04:30 UTC 
(rev 114761)
+++ trunk/extensions/Scribunto/Scripting.namespaces.php 2012-04-06 05:06:27 UTC 
(rev 114762)
@@ -1,8 +0,0 @@
-<?php
-
-$namespaceNames = array();
-
-$namespaceNames['en'] = array(
-       NS_MODULE       => 'Module',
-       NS_MODULE_TALK  => 'Module_talk',
-);

Deleted: trunk/extensions/Scribunto/Scripting.php
===================================================================
--- trunk/extensions/Scribunto/Scripting.php    2012-04-06 05:04:30 UTC (rev 
114761)
+++ trunk/extensions/Scribunto/Scripting.php    2012-04-06 05:06:27 UTC (rev 
114762)
@@ -1,102 +0,0 @@
-<?php
-/**
- * Wikitext scripting infrastructure for MediaWiki.
- * Copyright (C) 2009-2012 Victor Vasiliev <[email protected]>
- * http://www.mediawiki.org/
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- * http://www.gnu.org/copyleft/gpl.html
- */
-
-if( !defined( 'MEDIAWIKI' ) )
-       die();
-
-$wgExtensionCredits['parserhook']['Scribunto'] = array(
-       'path'           => __FILE__,
-       'name'           => 'Scribunto',
-       'author'         => 'Victor Vasiliev',
-       'descriptionmsg' => 'scribunto-desc',
-       'url'            => 
'https://www.mediawiki.org/wiki/Extension:Scribunto',
-);
-
-$dir = dirname(__FILE__) . '/';
-$wgExtensionMessagesFiles['Scribunto'] = $dir . 'Scribunto.i18n.php';
-$wgExtensionMessagesFiles['ScribuntoMagic'] = $dir . 'Scribunto.magic.php';
-$wgExtensionMessagesFiles['ScribuntoNamespaces'] = $dir . 
'Scribunto.namespaces.php';
-
-$wgAutoloadClasses['ScribuntoEngineBase'] = $dir.'common/Base.php';
-$wgAutoloadClasses['ScribuntoModuleBase'] = $dir.'common/Base.php';
-$wgAutoloadClasses['ScribuntoFunctionBase'] = $dir.'common/Base.php';
-$wgAutoloadClasses['ScribuntoHooks'] = $dir.'common/Hooks.php';
-$wgAutoloadClasses['ScribuntoException'] = $dir.'common/Common.php';
-$wgAutoloadClasses['Scribunto'] = $dir.'common/Common.php';
-
-$wgHooks['ParserFirstCallInit'][] = 'ScribuntoHooks::setupParserHook';
-$wgHooks['ParserLimitReport'][] = 'ScribuntoHooks::reportLimits';
-$wgHooks['ParserClearState'][] = 'ScribuntoHooks::clearState';
-
-$wgHooks['CanonicalNamespaces'][] = 'ScribuntoHooks::addCanonicalNamespaces';
-$wgHooks['ArticleViewCustom'][] = 'ScribuntoHooks::handleScriptView';
-$wgHooks['TitleIsWikitextPage'][] = 'ScribuntoHooks::isWikitextPage';
-$wgHooks['CodeEditorGetPageLanguage'][] = 'ScribuntoHooks::getCodeLanguage';
-$wgHooks['EditFilter'][] = 'ScribuntoHooks::validateScript';
-
-/***** Individual engines and their configurations *****/
-
-$wgAutoloadClasses['LuaSandboxEngine'] = $dir.'engines/LuaSandbox/Engine.php';
-
-/***** Configuration *****/
-
-/**
- * The name of the default script engine.
- */
-$wgScribuntoDefaultEngine = 'luasandbox';
-
-/**
- * Configuration for each script engine
- */
-$wgScribuntoEngineConf = array(
-       'luasandbox' => array(
-               'class' => 'LuaSandboxEngine',
-               'memoryLimit' => 50 * 1024 * 1024,
-               'cpuLimit' => 7,
-       ),
-);
-
-/**
- * Script namespace numbers.
- */
-$wgScribuntoNamespaceNumbers = array(
-       'Module' => 20,
-       'Module_talk' => 21,
-);
-
-/**
- * Turn on to true if SyntaxHighlight_GeSHi extension is enabled.
- */
-$wgScribuntoUseGeSHi = false;
-
-/**
- * Turn on to true if CodeEditor extension is enabled.
- */
-$wgScribuntoUseCodeEditor = false;
-
-function efDefineScribuntoNamespace() {
-       global $wgScribuntoNamespaceNumbers;
-       define( 'NS_MODULE', $wgScribuntoNamespaceNumbers['Module'] );
-       define( 'NS_MODULE_TALK', $wgScribuntoNamespaceNumbers['Module_talk'] );
-}
-
-$wgExtensionFunctions[] = 'efDefineScribuntoNamespace';


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to