Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/239162
Change subject: Fix alias not working
......................................................................
Fix alias not working
Adds $wgExtensionMessagesFiles to register alias file.
Also move autoload to main php file doint need it in a seperate file.
Add missing desc messages in qqq.json file.
Change-Id: Ic8da1d0006b9e469f46779c6d06cb5ea91da18d2
---
M FirstSteps.php
D _autoload.php
M i18n/qqq.json
3 files changed, 6 insertions(+), 25 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/FirstSteps
refs/changes/62/239162/1
diff --git a/FirstSteps.php b/FirstSteps.php
index c8322dd..b200f75 100644
--- a/FirstSteps.php
+++ b/FirstSteps.php
@@ -31,22 +31,17 @@
'url' => 'https://www.mediawiki.org/wiki/Extension:FirstSteps',
);
-/**
- * @cond file_level_code
- * Setup class autoloading.
- */
-$dir = __DIR__;
-require_once "$dir/_autoload.php";
-/** @endcond */
+$wgAutoloadClasses['SpecialFirstSteps'] = __DIR__ . 'SpecialFirstSteps.php';
/**
* Registering various resources
* @cond file_level_code
*/
-$wgMessagesDirs['FirstSteps'] = __DIR__ . "/i18n";
+$wgMessagesDirs['FirstSteps'] = __DIR__ . '/i18n';
// Register extension messages and other localisation.
-$wgExtensionMessagesFiles['FirstSteps'] = "$dir/FirstSteps.i18n.php";
+$wgExtensionMessagesFiles['FirstSteps'] = __DIR__ . '/FirstSteps.i18n.php';
+$wgExtensionMessagesFiles['FirstStepsAliases'] = $dir . 'FirstSteps.alias.php';
-$wgSpecialPages['FirstSteps'] = 'SpecialFirstSteps';
\ No newline at end of file
+$wgSpecialPages['FirstSteps'] = 'SpecialFirstSteps';
diff --git a/_autoload.php b/_autoload.php
deleted file mode 100644
index a8746eb..0000000
--- a/_autoload.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-/**
- * Autoload definitions.
- *
- * @file
- * @author Niklas Laxström
- * @copyright Copyright © 2008-2013, Niklas Laxström
- * @license GPL-2.0+
- */
-
-/** @cond file_level_code */
-$dir = dirname( __FILE__ );
-/** @endcond */
-
-$wgAutoloadClasses['SpecialFirstSteps'] = "$dir/SpecialFirstSteps.php";
\ No newline at end of file
diff --git a/i18n/qqq.json b/i18n/qqq.json
index 7a05ab1..0d0f44c 100644
--- a/i18n/qqq.json
+++ b/i18n/qqq.json
@@ -9,6 +9,7 @@
]
},
"firststeps": "{{doc-special|FirstSteps|unlisted=1}}",
+ "firststeps-desc":
"{{desc|what=extension|name=FirstSteps|url=https://www.mediawiki.org/wiki/Extension:FirstSteps}}",
"translate-fs-pagetitle": "Used as page title. Parameters:\n* $1 - any
one of the following messages:\n** {{msg-mw|translate-fs-signup-title}}\n**
{{msg-mw|translate-fs-settings-title}}\n**
{{msg-mw|translate-fs-userpage-title}}\n**
{{msg-mw|translate-fs-permissions-title}}\n**
{{msg-mw|translate-fs-target-title}}\n** {{msg-mw|translate-fs-email-title}}",
"translate-fs-signup-title": "Used as a part of the page title.\n\nSee
also:\n* {{msg-mw|Translate-fs-pagetitle}}\n{{Identical|Sign up}}",
"translate-fs-settings-title": "Used as a part of the page
title.\n\nSee also:\n* {{msg-mw|Translate-fs-pagetitle}}",
--
To view, visit https://gerrit.wikimedia.org/r/239162
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic8da1d0006b9e469f46779c6d06cb5ea91da18d2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/FirstSteps
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits