=?UTF-8?Q?Alexander=20Nicolaysen=20?==?UTF-8?Q?S=C3=B8rnes=20?=: util: Fix errors preventing Xinha from loading when PHP notices are turned on

Alexander Nicolaysen Sørnes asornes at winehq.org
Thu Jun 21 10:12:00 CDT 2012


Module: appdb
Branch: master
Commit: 519bbf6aa1dc27fec2ae081b4121269c26988683
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=519bbf6aa1dc27fec2ae081b4121269c26988683

Author: Alexander Nicolaysen Sørnes <alexsornes at gmail.com>
Date:   Thu Jun 21 15:05:53 2012 +0000

util: Fix errors preventing Xinha from loading when PHP notices are turned on

---

 include/util.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/util.php b/include/util.php
index 2549b04..3b4f517 100644
--- a/include/util.php
+++ b/include/util.php
@@ -653,6 +653,7 @@ function SimplifyPath($path) {
    {
      array_splice($dirs,$i,1);
      $i--;
+     continue;
    }
 
    if($dirs[$i]=="..")
@@ -682,7 +683,7 @@ function Simplify($dirs, $idx)
 // won't work with relative paths like ../xinha
 function GetSimplifiedPath($relative)
 {
-    return "/".SimplifyPath(dirname($_SERVER[PHP_SELF])."/".BASE.$relative);
+    return "/".SimplifyPath(dirname($_SERVER['PHP_SELF'])."/".BASE.$relative);
 }
 
 function HtmlAreaLoaderScript($aTextareas)




More information about the wine-cvs mailing list