aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/include
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LocalFilesEditor/include')
-rw-r--r--plugins/LocalFilesEditor/include/css.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/LocalFilesEditor/include/css.inc.php b/plugins/LocalFilesEditor/include/css.inc.php
index 83c479029..7fa129049 100644
--- a/plugins/LocalFilesEditor/include/css.inc.php
+++ b/plugins/LocalFilesEditor/include/css.inc.php
@@ -10,6 +10,10 @@ elseif (isset($_POST['edited_file']))
{
$edited_file = $_POST['edited_file'];
}
+elseif (isset($_GET['theme']) and in_array($_GET['theme'], array_keys(get_pwg_themes())))
+{
+ $edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . 'css/'.$_GET['theme'].'-rules.css';
+}
else
{
$edited_file = PHPWG_ROOT_PATH.PWG_LOCAL_DIR . 'css/'.get_default_theme().'-rules.css';