Hiong3-eng5 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/129374

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(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiLexicalData 
refs/changes/74/129374/1

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: newchange
Gerrit-Change-Id: I68e2225ad220323b22e991cf469fb9d5b7d17d8a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiLexicalData
Gerrit-Branch: master
Gerrit-Owner: Hiong3-eng5 <hiong3.e...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to