From: pdontthink Date: Wed, 3 Jan 2007 09:03:58 +0000 (+0000) Subject: Use checkForJavascript() instead of $javascript_on X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4ae656b7b25f16a9124f196a0a5c74af27239880;p=squirrelmail.git Use checkForJavascript() instead of $javascript_on git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12048 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/message_details/setup.php b/plugins/message_details/setup.php index 648fcb0b..43c7e7b9 100644 --- a/plugins/message_details/setup.php +++ b/plugins/message_details/setup.php @@ -30,8 +30,7 @@ function squirrelmail_plugin_init_message_details() * @access private */ function show_message_details(&$links) { - global $passed_id, $mailbox, $ent_num, - $javascript_on; + global $passed_id, $mailbox, $ent_num; if (strlen(trim($mailbox)) < 1) { $mailbox = 'INBOX'; @@ -41,7 +40,7 @@ function show_message_details(&$links) { '&mailbox=' . urlencode($mailbox) . '&passed_id=' . $passed_id; - $url = $javascript_on ? 'javascript:MessageSource();' : + $url = checkForJavascript() ? 'javascript:MessageSource();' : '../plugins/message_details/message_details_main.php' . $params; @@ -49,7 +48,7 @@ function show_message_details(&$links) { $links[] = array('URL' => $url, 'Text' => _("View Message details") ); - if ($javascript_on) { + if (checkForJavascript()) { echo '