Code

Modified raise error function to display even if there's no get_template_path() avail...
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Nov 2007 08:01:20 +0000 (08:01 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 26 Nov 2007 08:01:20 +0000 (08:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7883 594d385d-05f5-0310-b6e9-bd551577e9d8

include/php_setup.inc

index b3f839dcaa4d9c5e33fb80483683bd74b5843f0e..3ad89e47e3a41a94f2f5930a668f0869771284b7 100644 (file)
@@ -101,8 +101,11 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
       $error_collector= "
         <table summary=\"\" width=\"100%\" style='background-color:#E0E0E0;border-bottom:1px solid black;z-index:150;'>
           <tr>
-            <td>
-              <img alt=\"\" align=\"middle\" src='".get_template_path('images/warning.png')."'>&nbsp;
+            <td>";
+      if (function_exists("get_template_path")){
+              $error_collector.= "<img alt=\"\" align=\"middle\" src='".get_template_path('images/warning.png')."'>&nbsp;";
+      }
+      $error_collector.= "
               <font style='font-size:14px;font-weight:bold'>".
                 _("Generating this page caused the PHP interpreter to raise some errors!")."
               </font>