Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/183041
Change subject: Change canonical entry points around
......................................................................
Change canonical entry points around
Change-Id: I1022a004c8cfdbf16f1afacfcb9b67be90c31e06
---
M LabeledSectionTransclusion.php
M lst.php
2 files changed, 45 insertions(+), 45 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LabeledSectionTransclusion
refs/changes/41/183041/1
diff --git a/LabeledSectionTransclusion.php b/LabeledSectionTransclusion.php
index 4945bf6..4019205 100644
--- a/LabeledSectionTransclusion.php
+++ b/LabeledSectionTransclusion.php
@@ -1,11 +1,42 @@
<?php
-# This is a conventional entry point for continuous integration.
-# Jenkins job expect a PHP file having the same name as the git
-# repository hosting the extension. Aka:
-#
-if( !defined('MEDIAWIKI') ) {
+if ( ! defined( 'MEDIAWIKI' ) ) {
die();
}
-require_once( 'lst.php' );
-require_once( 'lsth.php' );
+/**#@+
+ * A parser extension that adds two functions, #lst and #lstx, and the
+ * <section> tag, for transcluding marked sections of text.
+ *
+ * @file
+ * @ingroup Extensions
+ *
+ * @link http://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion
Documentation
+ *
+ * @bug 5881
+ *
+ * @author Steve Sanbeg
+ * @copyright Copyright © 2006, Steve Sanbeg
+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
2.0 or later
+ */
+
+$wgHooks['ParserFirstCallInit'][] = 'LabeledSectionTransclusion::setup';
+// @todo FIXME: LanguageGetMagic is obsolete, but
LabeledSectionTransclusion::setupMagic()
+// contains magic hack that $magicWords cannot handle.
+$wgHooks['LanguageGetMagic'][] = 'LabeledSectionTransclusion::setupMagic';
+
+$wgExtensionCredits['parserhook'][] = array(
+ 'path' => __FILE__,
+ 'name' => 'LabeledSectionTransclusion',
+ 'author' => 'Steve Sanbeg',
+ 'url' =>
'https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion',
+ 'descriptionmsg' => 'lst-desc',
+);
+
+$dir = __DIR__;
+$wgAutoloadClasses['LabeledSectionTransclusion'] = $dir .
'/LabeledSectionTransclusion.class.php';
+$wgParserTestFiles[] = $dir . "/lstParserTests.txt";
+$wgParserTestFiles[] = $dir . "/lstIncorrectParserTest.txt";
+$wgMessagesDirs['LabeledSectionTransclusion'] = __DIR__ . '/i18n';
+$wgExtensionMessagesFiles['LabeledSectionTransclusion'] = $dir .
'/lst.i18n.php';
+
+$wgLstLocal = null;
diff --git a/lst.php b/lst.php
index 4019205..4945bf6 100644
--- a/lst.php
+++ b/lst.php
@@ -1,42 +1,11 @@
<?php
-if ( ! defined( 'MEDIAWIKI' ) ) {
+# This is a conventional entry point for continuous integration.
+# Jenkins job expect a PHP file having the same name as the git
+# repository hosting the extension. Aka:
+#
+if( !defined('MEDIAWIKI') ) {
die();
}
-/**#@+
- * A parser extension that adds two functions, #lst and #lstx, and the
- * <section> tag, for transcluding marked sections of text.
- *
- * @file
- * @ingroup Extensions
- *
- * @link http://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion
Documentation
- *
- * @bug 5881
- *
- * @author Steve Sanbeg
- * @copyright Copyright © 2006, Steve Sanbeg
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
2.0 or later
- */
-
-$wgHooks['ParserFirstCallInit'][] = 'LabeledSectionTransclusion::setup';
-// @todo FIXME: LanguageGetMagic is obsolete, but
LabeledSectionTransclusion::setupMagic()
-// contains magic hack that $magicWords cannot handle.
-$wgHooks['LanguageGetMagic'][] = 'LabeledSectionTransclusion::setupMagic';
-
-$wgExtensionCredits['parserhook'][] = array(
- 'path' => __FILE__,
- 'name' => 'LabeledSectionTransclusion',
- 'author' => 'Steve Sanbeg',
- 'url' =>
'https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion',
- 'descriptionmsg' => 'lst-desc',
-);
-
-$dir = __DIR__;
-$wgAutoloadClasses['LabeledSectionTransclusion'] = $dir .
'/LabeledSectionTransclusion.class.php';
-$wgParserTestFiles[] = $dir . "/lstParserTests.txt";
-$wgParserTestFiles[] = $dir . "/lstIncorrectParserTest.txt";
-$wgMessagesDirs['LabeledSectionTransclusion'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['LabeledSectionTransclusion'] = $dir .
'/lst.i18n.php';
-
-$wgLstLocal = null;
+require_once( 'lst.php' );
+require_once( 'lsth.php' );
--
To view, visit https://gerrit.wikimedia.org/r/183041
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1022a004c8cfdbf16f1afacfcb9b67be90c31e06
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LabeledSectionTransclusion
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits