Move classes into includes/

Change-Id: I1aa22e05f5968d7e099bdc738ce54ec0d12c31d1
This commit is contained in:
Kunal Mehta 2018-02-08 23:44:48 -08:00 committed by Legoktm
parent 8714127d47
commit 14c37dd760
4 changed files with 3 additions and 4 deletions

View file

@ -2,7 +2,6 @@
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName" />

View file

@ -39,8 +39,8 @@
"CiteThisPage": "SpecialCiteThisPage"
},
"AutoloadClasses": {
"SpecialCiteThisPage": "SpecialCiteThisPage.php",
"CiteThisPageHooks": "CiteThisPage.hooks.php"
"SpecialCiteThisPage": "includes/SpecialCiteThisPage.php",
"CiteThisPageHooks": "includes/CiteThisPageHooks.php"
},
"config": {
"CiteThisPageAdditionalNamespaces": {

View file

@ -145,7 +145,7 @@ class SpecialCiteThisPage extends FormSpecialPage {
# This code is kept for b/c in case an installation has its own file "citethispage-content-xx"
# for a previously not supported language.
global $wgContLang, $wgContLanguageCode;
$dir = __DIR__ . DIRECTORY_SEPARATOR;
$dir = __DIR__ . '/../';
$code = $wgContLang->lc( $wgContLanguageCode );
if ( file_exists( "${dir}citethispage-content-$code" ) ) {
$msg = file_get_contents( "${dir}citethispage-content-$code" );