Permalink
Browse files

Add windows support

  • Loading branch information...
1 parent a07e217 commit a31d9c59cbf1292cb95007d14ebf0e25b9fa1392 @trondn committed Dec 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tools.php
View
@@ -26,7 +26,8 @@ function getPath() {
function getRealScript() {
$full = $_SERVER['SCRIPT_FILENAME'];
- return substr($full, 0, strrpos($full, '/')) . getPath();
+ $idx = strrpos($full, DIRECTORY_SEPARATOR);
+ return substr($full, 0, $idx) . getPath();
}
function getStylesheets() {

0 comments on commit a31d9c5

Please sign in to comment.