Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Prevent from "Call to undefined method rcmail_output_json::add_footer…

…()" error
  • Loading branch information...
commit 8d3d5b42b7a0b53b896f63886135114c7a7544cf 1 parent 17ae130
Aleksander Machniak authored February 21, 2014

Showing 1 changed file with 9 additions and 9 deletions. Show diff stats Hide diff stats

  1. 18  index.php
18  index.php
@@ -207,6 +207,15 @@
207 207
         $session_error = true;
208 208
     }
209 209
 
  210
+    if ($session_error || $_REQUEST['_err'] == 'session') {
  211
+        $OUTPUT->show_message('sessionerror', 'error', null, true, -1);
  212
+    }
  213
+
  214
+    if ($OUTPUT->ajax_call || !empty($_REQUEST['_framed'])) {
  215
+        $OUTPUT->command('session_error', $RCMAIL->url(array('_err' => 'session')));
  216
+        $OUTPUT->send('iframe');
  217
+    }
  218
+
210 219
     // check if installer is still active
211 220
     if ($RCMAIL->config->get('enable_installer') && is_readable('./installer/index.php')) {
212 221
         $OUTPUT->add_footer(html::div(array('style' => "background:#ef9398; border:2px solid #dc5757; padding:0.5em; margin:2em auto; width:50em"),
@@ -218,15 +227,6 @@
218 227
         ));
219 228
     }
220 229
 
221  
-    if ($session_error || $_REQUEST['_err'] == 'session') {
222  
-        $OUTPUT->show_message('sessionerror', 'error', null, true, -1);
223  
-    }
224  
-
225  
-    if ($OUTPUT->ajax_call || !empty($_REQUEST['_framed'])) {
226  
-        $OUTPUT->command('session_error', $RCMAIL->url(array('_err' => 'session')));
227  
-        $OUTPUT->send('iframe');
228  
-    }
229  
-
230 230
     $plugin = $RCMAIL->plugins->exec_hook('unauthenticated', array('task' => 'login', 'error' => $session_error));
231 231
 
232 232
     $RCMAIL->set_task($plugin['task']);

0 notes on commit 8d3d5b4

Please sign in to comment.
Something went wrong with that request. Please try again.