r44288 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44287‎ | r44288 | r44289 >
Date:20:22, 7 December 2008
Author:nad
Status:ok
Tags:
Comment:
change any backslashes in baseUrl to forward slashes
Modified paths:
  • /trunk/extensions/TreeAndMenu/TreeAndMenu.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TreeAndMenu/TreeAndMenu.php
@@ -14,7 +14,7 @@
1515
1616 if (!defined('MEDIAWIKI')) die('Not an entry point.');
1717
18 -define('TREEANDMENU_VERSION','1.0.7, 2008-07-31');
 18+define('TREEANDMENU_VERSION','1.0.8, 2008-12-08');
1919
2020 # Set any unset images to default titles
2121 if (!isset($wgTreeViewImages) || !is_array($wgTreeViewImages)) $wgTreeViewImages = array();
@@ -63,6 +63,7 @@
6464 # Update general tree paths and properties
6565 $this->baseDir = dirname(__FILE__);
6666 $this->baseUrl = preg_replace('|^.+(?=[/\\\\]extensions)|', $wgScriptPath, $this->baseDir);
 67+ $this->baseUrl = str_replace('\\', '/', $this->baseDir);
6768 $this->useLines = $wgTreeViewShowLines ? 'true' : 'false';
6869 $this->uniq = uniqid($this->uniqname);
6970

Status & tagging log