jenkins-bot has submitted this change and it was merged.

Change subject: Change canonical entry points around
......................................................................


Change canonical entry points around

Change-Id: I1022a004c8cfdbf16f1afacfcb9b67be90c31e06
---
M LabeledSectionTransclusion.php
M lst.php
2 files changed, 42 insertions(+), 45 deletions(-)

Approvals:
  Merlijn van Deen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/LabeledSectionTransclusion.php b/LabeledSectionTransclusion.php
index c1de82b..cf9a06c 100644
--- a/LabeledSectionTransclusion.php
+++ b/LabeledSectionTransclusion.php
@@ -1,10 +1,43 @@
 <?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'  );
+/**#@+
+ * 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';
+$wgParserTestFiles[] = $dir . '/lsthParserTests.txt';
+$wgMessagesDirs['LabeledSectionTransclusion'] = __DIR__ . '/i18n';
+$wgExtensionMessagesFiles['LabeledSectionTransclusion'] = $dir . 
'/lst.i18n.php';
+
+$wgLstLocal = null;
diff --git a/lst.php b/lst.php
index cf9a06c..8fdce99 100644
--- a/lst.php
+++ b/lst.php
@@ -1,43 +1,7 @@
 <?php
-if ( ! defined( 'MEDIAWIKI' ) ) {
+# Holdover entry point
+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';
-$wgParserTestFiles[] = $dir . '/lsthParserTests.txt';
-$wgMessagesDirs['LabeledSectionTransclusion'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['LabeledSectionTransclusion'] = $dir . 
'/lst.i18n.php';
-
-$wgLstLocal = null;
+require_once( 'LabeledSectionTransclusion.php'  );

-- 
To view, visit https://gerrit.wikimedia.org/r/183041
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1022a004c8cfdbf16f1afacfcb9b67be90c31e06
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/LabeledSectionTransclusion
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Jackmcbarn <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to