|
From: Paul L. <pdo...@us...> - 2007-01-03 09:04:02
|
Update of /cvsroot/squirrelmail/squirrelmail/plugins/message_details In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv5561/message_details Modified Files: setup.php Log Message: Use checkForJavascript() instead of $javascript_on Index: setup.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/plugins/message_details/setup.php,v retrieving revision 1.18 retrieving revision 1.19 diff -u -w -r1.18 -r1.19 --- setup.php 10 Dec 2006 20:18:47 -0000 1.18 +++ setup.php 3 Jan 2007 09:03:58 -0000 1.19 @@ -30,8 +30,7 @@ * @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 @@ '&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 @@ $links[] = array('URL' => $url, 'Text' => _("View Message details") ); - if ($javascript_on) { + if (checkForJavascript()) { echo '<script type="text/javascript">' . "\n" . '<!--' . "\n" . " function MessageSource() {\n" . |