t12n of fortune output
[squirrelmail.git] / plugins / fortune / setup.php
index e85813510d45078ee132ec677a5c405fe4706672..94f2551c6adfbf1c9e5e058e1ceb7fd67276f17c 100644 (file)
@@ -17,7 +17,7 @@
 function squirrelmail_plugin_init_fortune() {
     global $squirrelmail_plugin_hooks;
 
-    $squirrelmail_plugin_hooks['mailbox_index_before']['fortune'] = 'fortune';
+    $squirrelmail_plugin_hooks['template_construct_message_list.tpl']['fortune'] = 'fortune';
     $squirrelmail_plugin_hooks['loading_prefs']['fortune'] = 'fortune_load';
     $squirrelmail_plugin_hooks['optpage_loadhook_display']['fortune'] = 'fortune_options';
 }
@@ -28,7 +28,7 @@ function squirrelmail_plugin_init_fortune() {
  */
 function fortune() {
     include_once(SM_PATH . 'plugins/fortune/functions.php');
-    fortune_function();
+    return fortune_function();
 }
 
 /**