Fix for compose in new. Now use the constant SM_BASE_URI.
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 6 Apr 2006 11:09:04 +0000 (11:09 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 6 Apr 2006 11:09:04 +0000 (11:09 +0000)
TODO, move this function to the same place as makeInternalLink.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11029 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index 00761057faedbcc11d19ff037a0ccb10d97425d1..a6e3852a065f467f28d5d24adbabe5f07ac63a03 100644 (file)
@@ -825,7 +825,7 @@ function makeComposeLink($url, $text = null, $target='') {
     // if javascript is on, use onclick event to handle it
     if($javascript_on) {
         sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION);
-        $compuri = $base_uri.$url;
+        $compuri = SM_BASE_URI.$url;
         return "<a href=\"javascript:void(0)\" onclick=\"comp_in_new('$compuri','$compose_width','$compose_height')\">$text</a>";
     }