From ae73ef3d5743b2afba65db7d89e78b135d8c9090 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 12 Jan 2009 07:50:04 +0000 Subject: Updated for new Form_Submit API. OLD: $form->submit("Foo") --> New: $form->submit("foo_button")->("Foo") --> Mostly we don't care what the button is so we leave the name blank. --- core/helpers/theme.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/helpers/theme.php') 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)); } -- cgit v1.2.3