summaryrefslogtreecommitdiff
path: root/core/helpers/theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers/theme.php')
-rw-r--r--core/helpers/theme.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/helpers/theme.php b/core/helpers/theme.php
index fac2de33..8f977e0c 100644
--- a/core/helpers/theme.php
+++ b/core/helpers/theme.php
@@ -37,7 +37,7 @@ class theme_Core {
}
Kohana::config_set('core.modules', $modules);
}
-
+
public static function get_edit_form_admin($theme) {
$form = new Forge("admin/themes/edit/{$theme->id}",
'', null, array("id" =>"gThemeDetailsForm"));
@@ -51,15 +51,15 @@ class theme_Core {
$group->input("resize_size")->label(t("Resized image size (in pixels)"))->id("gResizeSize")->
rules('required|valid_digit')->
value(self::get_var($theme->id, "resize_size", 600));
- $group->submit(t("Modify Theme"));
+ $group->submit("")->value(t("Modify Theme"));
return $form;
}
-
+
public static function get_edit_form_content($theme_name) {
- $file = THEMEPATH . $theme_name . "/theme.info";
- $theme_info = new ArrayObject(parse_ini_file($file), ArrayObject::ARRAY_AS_PROPS);
+ $file = THEMEPATH . $theme_name . "/theme.info";
+ $theme_info = new ArrayObject(parse_ini_file($file), ArrayObject::ARRAY_AS_PROPS);
}
-
+
public static function get_var($theme_id, $name, $default_value = null) {
return module::get_var($theme_id, $name, module::get_var("core", $name, $default_value));
}