X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fstrings.php;h=68c607819bd9d230c41590d0e189109b252c9b49;hb=8fea605cde592038b1472a25c8ccf49acd88d3b4;hp=2e610b3862e2e6a8037d0eec4535681bce14851c;hpb=769a819ddfb1917b473e2b36f86f7c5b99b14600;p=squirrelmail.git diff --git a/functions/strings.php b/functions/strings.php index 2e610b38..68c60781 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -792,7 +792,7 @@ function quoteimap($str) { * @since 1.4.2 */ function makeComposeLink($url, $text = null, $target='') { - global $compose_new_win, $javascript_on, $compose_width, + global $compose_new_win, $compose_width, $compose_height, $oTemplate; if(!$text) { @@ -809,7 +809,7 @@ function makeComposeLink($url, $text = null, $target='') { // if javascript is on, use onclick event to handle it - if($javascript_on) { + if(checkForJavascript()) { sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION); $compuri = SM_BASE_URI.$url;