projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Syntax error fix
[squirrelmail.git]
/
plugins
/
message_details
/
setup.php
diff --git
a/plugins/message_details/setup.php
b/plugins/message_details/setup.php
index 648fcb0b3f85ceb9ffa7e2caeee4cf58654a7b1e..0b2c1341705942cb34c9328e45f9348b484f214b 100644
(file)
--- a/
plugins/message_details/setup.php
+++ b/
plugins/message_details/setup.php
@@
-7,7
+7,7
@@
*
* @author Marc Groot Koerkamp
* @copyright © 2002 Marc Groot Koerkamp, The Netherlands
*
* @author Marc Groot Koerkamp
* @copyright © 2002 Marc Groot Koerkamp, The Netherlands
- * @copyright © 2002-200
6
The SquirrelMail Project Team
+ * @copyright © 2002-200
7
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
@@
-30,8
+30,7
@@
function squirrelmail_plugin_init_message_details()
* @access private
*/
function show_message_details(&$links) {
* @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';
if (strlen(trim($mailbox)) < 1) {
$mailbox = 'INBOX';
@@
-41,7
+40,7
@@
function show_message_details(&$links) {
'&mailbox=' . urlencode($mailbox) .
'&passed_id=' . $passed_id;
'&mailbox=' . urlencode($mailbox) .
'&passed_id=' . $passed_id;
- $url =
$javascript_on
? 'javascript:MessageSource();' :
+ $url =
checkForJavascript()
? 'javascript:MessageSource();' :
'../plugins/message_details/message_details_main.php' .
$params;
'../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") );
$links[] = array('URL' => $url,
'Text' => _("View Message details") );
- if (
$javascript_on
) {
+ if (
checkForJavascript()
) {
echo '<script type="text/javascript">' . "\n" .
'<!--' . "\n" .
" function MessageSource() {\n" .
echo '<script type="text/javascript">' . "\n" .
'<!--' . "\n" .
" function MessageSource() {\n" .