summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm
diff options
context:
space:
mode:
authorOliver Tappe2008-05-28 18:55:04 +0200
committerOliver Tappe2008-05-28 18:55:04 +0200
commit74f651cffde2a7a5ba0777b9b34aa45e253a1311 (patch)
tree28c5b9221785d791de983613e5a2f8f48850165b /os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm
parent* refactored code for synchronization of attributes (moved from DBSchema to C... (diff)
downloadcore-74f651cffde2a7a5ba0777b9b34aa45e253a1311.tar.gz
core-74f651cffde2a7a5ba0777b9b34aa45e253a1311.tar.xz
core-74f651cffde2a7a5ba0777b9b34aa45e253a1311.zip
* make sure the local themes directory exists whenever this plugin is being
instantiated git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1806 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm')
-rw-r--r--os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm b/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm
index ed8a7508..9a251a86 100644
--- a/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm
+++ b/os-plugins/plugins/desktop/OpenSLX/OSPlugin/desktop.pm
@@ -33,6 +33,9 @@ sub new
name => 'desktop',
};
+ my $localThemesDir = "$openslxConfig{'config-path'}/plugins/desktop/themes";
+ mkpath($localThemesDir) unless -e $localThemesDir;
+
return bless $self, $class;
}