jenkins-bot has submitted this change and it was merged.
Change subject: Point to Gitblit since Gitweb is deprecated
......................................................................
Point to Gitblit since Gitweb is deprecated
Change-Id: I28a053fa8ec5ee19b4647d087abe31aae53c9e5f
---
M LocalisationUpdate.class.php
M LocalisationUpdate.php
2 files changed, 6 insertions(+), 5 deletions(-)
Approvals:
Nikerabbit: Looks good to me, approved
jenkins-bot: Verified
diff --git a/LocalisationUpdate.class.php b/LocalisationUpdate.class.php
index 39368b7..9985393 100644
--- a/LocalisationUpdate.class.php
+++ b/LocalisationUpdate.class.php
@@ -145,7 +145,7 @@
// Create a full path.
$svnfile = str_replace(
array( '$1', '$2' ),
- array( $ext, $extFile ),
+ array( urlencode( $ext ), urlencode( $extFile ) ),
$extUrl
);
@@ -165,7 +165,7 @@
public static function updateMediawikiMessages( $verbose, $coreUrl ) {
// Find the changed English strings (as these messages won't be
updated in ANY language).
$localUrl = Language::getMessagesFileName( 'en' );
- $repoUrl = str_replace( '$2',
'languages/messages/MessagesEn.php', $coreUrl );
+ $repoUrl = str_replace( '$2', urlencode(
'languages/messages/MessagesEn.php' ), $coreUrl );
$changedEnglishStrings = self::compareFiles( $repoUrl,
$localUrl, $verbose );
// Count the changes.
@@ -176,7 +176,7 @@
$localUrl = Language::getMessagesFileName( $code );
// Not prefixed with $IP
$filename = Language::getFilename(
'languages/messages/Messages', $code );
- $repoUrl = str_replace( '$2', $filename, $coreUrl );
+ $repoUrl = str_replace( '$2', urlencode( $filename ),
$coreUrl );
// Compare the files.
$changedCount += self::compareFiles( $repoUrl,
$localUrl, $verbose, $changedEnglishStrings, false, true );
diff --git a/LocalisationUpdate.php b/LocalisationUpdate.php
index 89f0659..ff0bcfd 100644
--- a/LocalisationUpdate.php
+++ b/LocalisationUpdate.php
@@ -16,8 +16,9 @@
* These should point to either an HTTP-accessible file or local file system.
* $1 is the name of the repo (for extensions) and $2 is the name of file in
the repo.
*/
-$wgLocalisationUpdateCoreURL =
"https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob_plain;f=$2;hb=HEAD";
-$wgLocalisationUpdateExtensionURL =
"https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/$1.git;a=blob_plain;f=$2;hb=HEAD";
+
+$wgLocalisationUpdateCoreURL =
"https://git.wikimedia.org/raw/mediawiki%2Fcore.git/HEAD/$2";
+$wgLocalisationUpdateExtensionURL =
"https://git.wikimedia.org/raw/mediawiki%2Fextensions%2F$1.git/HEAD/$2";
/// Deprecated
$wgLocalisationUpdateSVNURL = false;
--
To view, visit https://gerrit.wikimedia.org/r/67531
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I28a053fa8ec5ee19b4647d087abe31aae53c9e5f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LocalisationUpdate
Gerrit-Branch: master
Gerrit-Owner: Demon <[email protected]>
Gerrit-Reviewer: Amire80 <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits