fixed some redirects, and converted widgets.raw to a non-automatically validated panel

This commit is contained in:
real_nowhereman 2008-01-03 20:04:16 +00:00
parent a6fe3b1af8
commit c5755ce9d0
3 changed files with 6 additions and 10 deletions

View File

@ -111,7 +111,7 @@
$this->smarty->assign('success', ( $success )? 1 : -1 );
return 1;
return PANEL_REDIRECT_CURRENT;
}

View File

@ -13,7 +13,7 @@
*
*/
class admin_widgets_raw extends AdminPanelActionValidated {
class admin_widgets_raw extends AdminPanelAction {
var $validators = array(array('content', 'content', 'notEmpty', false, false));
var $events = array('save');
@ -51,7 +51,7 @@
$this->smarty->assign('success', ( $success )? 1 : -1 );
$this->smarty->assign('pluginconf', $str);
return $success;
return PANEL_REDIRECT_CURRENT;
}

View File

@ -6,11 +6,7 @@
{include file='shared:errorlist.tpl'}
<form method="post"
action="{$smarty.const.BLOG_BASEURL}admin.php?{$smarty.server.QUERY_STRING|escape:"html"}"
enctype="multipart/form-data">
{html_form}
<p>
<textarea name="content" id="content"
@ -22,4 +18,4 @@
{html_submit name="save" id="save" value=$panelstrings.submit}
</div>
</form>
{/html_form}