Code

Removed do nothing blocks
[gosa.git] / gosa-core / include / php_setup.inc
index 9ba0e4dacaa1140070b794bccf403d8652e45344..82289820300c81a961f69b28b8b35a63711b7d59 100644 (file)
@@ -29,7 +29,10 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
   // To avoid recursion - restore original error handler.
   restore_error_handler();
 
-  /* Return if error reporting is set to zero */
+  /* Return if error reporting is set to zero 
+   * Also exclude statements prefixed with @ - Comment out the block below to see suppressed errors. 
+   * e.g. @call_function_but_hide_errors()
+   */
   if (error_reporting() == 0){
     set_error_handler('gosaRaiseError', E_WARNING |  E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT) ;
     return;
@@ -106,13 +109,13 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
               </a>
             </td>
             <td align=right>
-              <button onClick='GOsa_toggle(\"errorbox\")'>".
+              <button onClick=\"$('errorbox').toggle();\">".
                 _("Toggle information")."
               </button>
             </td>
           </tr>
         </table>
-        <div id='errorbox' style='position:absolute; z-index:150; visibility: hidden'>";
+        <div id='errorbox' style='position:absolute; z-index:150; display: none;'>";
     }
   }
  
@@ -291,9 +294,9 @@ $smarty->template_dir = $BASE_DIR.'/ihtml/';
 $smarty->caching= false;
 $smarty->php_handling= SMARTY_PHP_REMOVE;
 
-// Try to load PDF library
+/* Global FPDF define */
 define('FPDF_FONTPATH', '/usr/share/php/fpdf/font/');
-@include('fpdf/fpdf.php');
+
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>