Mikolaj Zalewski : compatibility fix for old PHP

Alexandre Julliard julliard at winehq.org
Fri Jun 19 08:36:17 CDT 2009


Module: tools
Branch: master
Commit: 8349cca4be1a4ae4d2bcf8dbe266583e96415a74
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=8349cca4be1a4ae4d2bcf8dbe266583e96415a74

Author: Mikolaj Zalewski <mikolajz at tygrys.dom>
Date:   Wed Feb 13 21:37:24 2008 +0100

compatibility fix for old PHP

---

 php/resfile.php  |    2 +-
 php/resource.php |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/php/resfile.php b/php/resfile.php
index cff3948..1c2129d 100644
--- a/php/resfile.php
+++ b/php/resfile.php
@@ -51,7 +51,7 @@ foreach ($msgs as $value)
         else
         {
             if (strpos($value, "Error: ") === 0)
-                $extra = "&compare";
+                $extra = "&compare=";
             else
                 $extra = "";
             $value = preg_replace("/STRINGTABLE ([0-9]+)/",
diff --git a/php/resource.php b/php/resource.php
index 0783ff1..5e74aa5 100644
--- a/php/resource.php
+++ b/php/resource.php
@@ -23,7 +23,7 @@ $msgs = array();
 if (!$compare)
 {
     echo "<tr style=\"background-color: #e8e8ff\"><td colspan=\"2\" style=\"text-align: right\">";
-    echo "<small><a href=\"resource.php?lang=".urlencode($lang)."&resfile=".urlencode($resfile)."&type=".urlencode($type)."&id=".urlencode($id)."&compare\">";
+    echo "<small><a href=\"resource.php?lang=".urlencode($lang)."&resfile=".urlencode($resfile)."&type=".urlencode($type)."&id=".urlencode($id)."&compare=\">";
     echo "Compare with ".get_lang_name($MASTER_LANGUAGE)." &gt;&gt;</a></small>";
     echo "</td></tr>";
 }




More information about the wine-cvs mailing list