fixed some redirects, and converted widgets.raw to a non-automatically validated panel
This commit is contained in:
parent
a6fe3b1af8
commit
c5755ce9d0
@ -111,7 +111,7 @@
|
||||
|
||||
$this->smarty->assign('success', ( $success )? 1 : -1 );
|
||||
|
||||
return 1;
|
||||
return PANEL_REDIRECT_CURRENT;
|
||||
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user