Code

Updated image() function
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 May 2010 15:06:30 +0000 (15:06 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 May 2010 15:06:30 +0000 (15:06 +0000)
-Do not 'die()' if there is no config, this makes the setup unuseable

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18559 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index 1e86262c188944812ca5d06c28c1e1642224c707..5bd288d1f3635a118b0ed18c8bc6b4d1f25a57e2 100644 (file)
@@ -3501,8 +3501,8 @@ function image($path, $action= "", $title= "", $align= "middle")
     if (isset ($config)){
       $theme= $config->get_cfg_value("core","theme");
     } else {
-      # For debuging - avoid that there's no theme set
-      die("config not set!");
+
+      // Fall back to default theme
       $theme= "default";
     }