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

Change subject: Organize code in includes/maintenance directories
......................................................................


Organize code in includes/maintenance directories

Change-Id: I3a243074049a5b8b212de5bcd1e341c36e4a13e0
---
M PageImages.php
R includes/ApiQueryPageImages.php
R includes/PageImages.php
R maintenance/initImageData.php
4 files changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Hoo man: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/PageImages.php b/PageImages.php
index 0f52ccb..3d6fb74 100644
--- a/PageImages.php
+++ b/PageImages.php
@@ -14,8 +14,8 @@
        'url'            => 
'https://www.mediawiki.org/wiki/Extension:PageImages'
 );
 
-$wgAutoloadClasses['ApiQueryPageImages'] = __DIR__ . "/ApiQueryPageImages.php";
-$wgAutoloadClasses['PageImages'] = __DIR__ . "/PageImages.body.php";
+$wgAutoloadClasses['ApiQueryPageImages'] = __DIR__ . 
'/includes/ApiQueryPageImages.php';
+$wgAutoloadClasses['PageImages'] = __DIR__ . '/includes/PageImages.php';
 
 $wgMessagesDirs['PageImages'] = __DIR__ . '/i18n';
 $wgExtensionMessagesFiles['PageImages'] = __DIR__ . "/PageImages.i18n.php";
diff --git a/ApiQueryPageImages.php b/includes/ApiQueryPageImages.php
similarity index 100%
rename from ApiQueryPageImages.php
rename to includes/ApiQueryPageImages.php
diff --git a/PageImages.body.php b/includes/PageImages.php
similarity index 100%
rename from PageImages.body.php
rename to includes/PageImages.php
diff --git a/initImageData.php b/maintenance/initImageData.php
similarity index 96%
rename from initImageData.php
rename to maintenance/initImageData.php
index 40daaee..a0882dc 100644
--- a/initImageData.php
+++ b/maintenance/initImageData.php
@@ -2,7 +2,7 @@
 
 $IP = getenv( 'MW_INSTALL_PATH' );
 if ( $IP === false ) {
-       $IP = dirname( dirname( dirname( __FILE__ ) ) );
+       $IP = __DIR__ . '/../../..';
 }
 require_once( "$IP/maintenance/Maintenance.php" );
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I3a243074049a5b8b212de5bcd1e341c36e4a13e0
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/PageImages
Gerrit-Branch: master
Gerrit-Owner: Thiemo Mättig (WMDE) <[email protected]>
Gerrit-Reviewer: Addshore <[email protected]>
Gerrit-Reviewer: Aude <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to