mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CiteThisPage
synced 2024-11-14 11:15:04 +00:00
Move classes into includes/
Change-Id: I1aa22e05f5968d7e099bdc738ce54ec0d12c31d1
This commit is contained in:
parent
8714127d47
commit
14c37dd760
|
@ -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" />
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
"CiteThisPage": "SpecialCiteThisPage"
|
||||
},
|
||||
"AutoloadClasses": {
|
||||
"SpecialCiteThisPage": "SpecialCiteThisPage.php",
|
||||
"CiteThisPageHooks": "CiteThisPage.hooks.php"
|
||||
"SpecialCiteThisPage": "includes/SpecialCiteThisPage.php",
|
||||
"CiteThisPageHooks": "includes/CiteThisPageHooks.php"
|
||||
},
|
||||
"config": {
|
||||
"CiteThisPageAdditionalNamespaces": {
|
||||
|
|
|
@ -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" );
|
Loading…
Reference in a new issue