Add attribute array to hyperlink/image/span templates for future extensibility
[squirrelmail.git] / plugins / spamcop / functions.php
index d53f299b6148ff2a88e41a52e407517838f2195d..e21fbfecf8f2b27bdc90261d0f9a8f13f8fae76a 100644 (file)
@@ -60,7 +60,7 @@ function spamcop_load_function() {
  * @access private
  */
 function spamcop_show_link_function(&$links) {
-    global $spamcop_enabled, $spamcop_method, $spamcop_quick_report,$javascript_on;
+    global $spamcop_enabled, $spamcop_method, $spamcop_quick_report;
 
     if (! $spamcop_enabled)
         return;
@@ -99,7 +99,7 @@ function spamcop_show_link_function(&$links) {
     $url =  '../plugins/spamcop/spamcop.php?passed_id=' . urlencode($passed_id) .
                 '&mailbox=' . urlencode($mailbox) . '&startMessage=' . urlencode($startMessage) .
                 '&passed_ent_id=' . urlencode($passed_ent_id);
-    if ( $spamcop_method == 'web_form' && $javascript_on ) {
+    if ( $spamcop_method == 'web_form' && checkForJavascript() ) {
         $url .= '&js_web=1';
     }