Aude has uploaded a new change for review. https://gerrit.wikimedia.org/r/93711
Change subject: Check Wikidata build install path for dispatchChanges script ...................................................................... Check Wikidata build install path for dispatchChanges script Bug: 56618 Change-Id: I9e314c7ce899582c5130d5132ff0ff2779ff617d --- M lib/maintenance/dispatchChanges.php 1 file changed, 8 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/11/93711/1 diff --git a/lib/maintenance/dispatchChanges.php b/lib/maintenance/dispatchChanges.php index 822a8ee..5e65373 100644 --- a/lib/maintenance/dispatchChanges.php +++ b/lib/maintenance/dispatchChanges.php @@ -3,8 +3,15 @@ namespace Wikibase; $basePath = getenv( 'MW_INSTALL_PATH' ) !== false ? getenv( 'MW_INSTALL_PATH' ) : __DIR__ . '/../../../..'; +$maintenanceFile = "$basePath/maintenance/Maintenance.php"; -require_once $basePath . '/maintenance/Maintenance.php'; +if ( !file_exists( $maintenanceFile ) ) { + // if Wikibase is not in the standard location, then a build might be used. + // a build may put Wikibase another level deep. + $maintenanceFile = __DIR__ . '/../../../../../maintenance/Maintenance.php'; +} + +require_once $maintenanceFile; /** * Maintenance script that polls for Wikibase changes in the shared wb_changes table -- To view, visit https://gerrit.wikimedia.org/r/93711 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I9e314c7ce899582c5130d5132ff0ff2779ff617d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Aude <aude.w...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits