Code

Updated properties.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 09:11:37 +0000 (09:11 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 May 2010 09:11:37 +0000 (09:11 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18355 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/personal/environment/class_environment.inc

index c9cf730de30b93c1cb6fd036d1b976466ccb17e6..88f1781be08b84d7c1226ca2a5b932b1f453c11c 100644 (file)
@@ -219,8 +219,8 @@ class environment extends plugin
                                     "1280x768"  =>  "1280x768",
                                     "1280x1024" =>  "1280x1024");
 
-    if($this->config->get_cfg_value("core","resolutions") != ""){
-      $file = $this->config->get_cfg_value("core","resolutions");
+    if($this->config->get_cfg_value("environment","resolutions") != ""){
+      $file = $this->config->get_cfg_value("environment","resolutions");
 
       if(is_readable($file)){
         $str = file_get_contents($file);
@@ -1776,6 +1776,16 @@ class environment extends plugin
 
                   "plProperties" => array(
 
+                      array(
+                          "name"          => "resolutions",
+                          "type"          => "file",
+                          "default"       => "",
+                          "description"   => _("The 'resolutions' variable defines a plain text file which contains additional resolutions to be shown in the environment and system plugins."),
+                          "check"         => "gosaProperty::isReadableFile",
+                          "migrate"       => "",
+                          "group"         => "environment",
+                          "mandatory"     => FALSE
+                          ),
                       array(
                           "name"          => "kioskPath",
                           "type"          => "path",