From 14c37dd760a75d525c06caa4640077857f6fe35e Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 8 Feb 2018 23:44:48 -0800 Subject: [PATCH] Move classes into includes/ Change-Id: I1aa22e05f5968d7e099bdc738ce54ec0d12c31d1 --- .phpcs.xml | 1 - extension.json | 4 ++-- CiteThisPage.hooks.php => includes/CiteThisPageHooks.php | 0 SpecialCiteThisPage.php => includes/SpecialCiteThisPage.php | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) rename CiteThisPage.hooks.php => includes/CiteThisPageHooks.php (100%) rename SpecialCiteThisPage.php => includes/SpecialCiteThisPage.php (99%) diff --git a/.phpcs.xml b/.phpcs.xml index 38d53b75..e6f0f9cb 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -2,7 +2,6 @@ - diff --git a/extension.json b/extension.json index 2155d453..03ade52d 100644 --- a/extension.json +++ b/extension.json @@ -39,8 +39,8 @@ "CiteThisPage": "SpecialCiteThisPage" }, "AutoloadClasses": { - "SpecialCiteThisPage": "SpecialCiteThisPage.php", - "CiteThisPageHooks": "CiteThisPage.hooks.php" + "SpecialCiteThisPage": "includes/SpecialCiteThisPage.php", + "CiteThisPageHooks": "includes/CiteThisPageHooks.php" }, "config": { "CiteThisPageAdditionalNamespaces": { diff --git a/CiteThisPage.hooks.php b/includes/CiteThisPageHooks.php similarity index 100% rename from CiteThisPage.hooks.php rename to includes/CiteThisPageHooks.php diff --git a/SpecialCiteThisPage.php b/includes/SpecialCiteThisPage.php similarity index 99% rename from SpecialCiteThisPage.php rename to includes/SpecialCiteThisPage.php index bf0de96c..3034f288 100644 --- a/SpecialCiteThisPage.php +++ b/includes/SpecialCiteThisPage.php @@ -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" );