*
* @author Marc Groot Koerkamp
* @copyright © 2002 Marc Groot Koerkamp, The Netherlands
- * @copyright © 2002-2006 The SquirrelMail Project Team
+ * @copyright © 2002-2007 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @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';
'&mailbox=' . urlencode($mailbox) .
'&passed_id=' . $passed_id;
- $url = $javascript_on ? 'javascript:MessageSource();' :
+ $url = checkForJavascript() ? 'javascript:MessageSource();' :
'../plugins/message_details/message_details_main.php' .
$params;
$links[] = array('URL' => $url,
'Text' => _("View Message details") );
- if ($javascript_on) {
+ if (checkForJavascript()) {
echo '<script type="text/javascript">' . "\n" .
'<!--' . "\n" .
" function MessageSource() {\n" .