Kipcool has submitted this change and it was merged.

Change subject: download path
......................................................................


download path

difference between how Windows and Linux interprets $IP mess up this path,
introduced some safeguard, just to be sure.

Change-Id: I68e2225ad220323b22e991cf469fb9d5b7d17d8a
---
M OmegaWiki/WikiDataGlobals.php
1 file changed, 3 insertions(+), 1 deletion(-)

Approvals:
  Kipcool: Verified; Looks good to me, approved



diff --git a/OmegaWiki/WikiDataGlobals.php b/OmegaWiki/WikiDataGlobals.php
index e45962d..ea62b8a 100644
--- a/OmegaWiki/WikiDataGlobals.php
+++ b/OmegaWiki/WikiDataGlobals.php
@@ -53,7 +53,9 @@
 }
 
 $wgWldOwScriptPath     = $wgWldScriptPath . "OmegaWiki/";
-$wgWldDownloadScriptPath = $IP . "downloads/";
+$wgWldDownloadScriptPath = $IP . "/downloads/";
+$wgWldDownloadScriptPath = str_replace( '//', '/', $wgWldDownloadScriptPath );
+$wgWldDownloadScriptPath = str_replace( '\/', '/', $wgWldDownloadScriptPath );
 $wgWldIncludesScriptPath = $wgWldScriptPath . "includes/";
 $wgWldSpecialsScriptPath = $wgWldIncludesScriptPath . "specials/";
 $wgWldAPIScriptPath      = $wgWldIncludesScriptPath . "api/";

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I68e2225ad220323b22e991cf469fb9d5b7d17d8a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiLexicalData
Gerrit-Branch: master
Gerrit-Owner: Hiong3-eng5 <[email protected]>
Gerrit-Reviewer: Kipcool <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to