jenkins-bot has submitted this change and it was merged.
Change subject: Move maintenance scripts to maintenance directory
......................................................................
Move maintenance scripts to maintenance directory
Left fixme comment
Change-Id: I30207558d21bb73c6caa6dd722016bc51b257395
---
R maintenance/processEchoEmailBatch.php
R maintenance/testDiscussionParser.php
2 files changed, 9 insertions(+), 7 deletions(-)
Approvals:
Kaldari: Looks good to me, approved
jenkins-bot: Verified
diff --git a/processEchoEmailBatch.php b/maintenance/processEchoEmailBatch.php
similarity index 90%
rename from processEchoEmailBatch.php
rename to maintenance/processEchoEmailBatch.php
index 0dd2d90..8927c62 100644
--- a/processEchoEmailBatch.php
+++ b/maintenance/processEchoEmailBatch.php
@@ -2,14 +2,14 @@
$IP = getenv( 'MW_INSTALL_PATH' );
if ( $IP === false ) {
- $IP = dirname( __FILE__ ) . '/../..';
+ $IP = dirname( __FILE__ ) . '/../../..';
}
require_once( "$IP/maintenance/Maintenance.php" );
/**
* A maintenance script that processes email digest
*/
-class processEchoEmailBatch extends Maintenance {
+class ProcessEchoEmailBatch extends Maintenance {
/**
* Max number of records to process at a time
@@ -61,5 +61,5 @@
}
}
-$maintClass = "processEchoEmailBatch";
+$maintClass = "ProcessEchoEmailBatch";
require_once( DO_MAINTENANCE );
diff --git a/testDiscussionParser.php b/maintenance/testDiscussionParser.php
similarity index 90%
rename from testDiscussionParser.php
rename to maintenance/testDiscussionParser.php
index c6871f6..d356446 100644
--- a/testDiscussionParser.php
+++ b/maintenance/testDiscussionParser.php
@@ -1,8 +1,10 @@
<?php
-require_once ( getenv( 'MW_INSTALL_PATH' ) !== false
- ? getenv( 'MW_INSTALL_PATH' ) . '/maintenance/Maintenance.php'
- : dirname( __FILE__ ) . '/../../../maintenance/Maintenance.php' );
+$IP = getenv( 'MW_INSTALL_PATH' );
+if ( $IP === false ) {
+ $IP = dirname( __FILE__ ) . '/../../..';
+}
+require_once( "$IP/maintenance/Maintenance.php" );
class TestDiscussionParser extends Maintenance {
public function __construct() {
@@ -80,7 +82,7 @@
$user = $pageData['revisions'][0]['user'];
print
"http://en.wikipedia.org/w/index.php?diff=prev&oldid=$revid\n";
- EchoDiscussionParser::getInterestedUsers( $oldText,
$newText, $user );
+ EchoDiscussionParser::getInterestedUsers( $oldText,
$newText, $user ); // FIXME: getInterestedUsers() is undefined
}
}
}
--
To view, visit https://gerrit.wikimedia.org/r/52745
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I30207558d21bb73c6caa6dd722016bc51b257395
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: Bsitu <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: Lwelling <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits