fixed some redirects, and converted widgets.raw to a non-automatically validated panel
This commit is contained in:
parent
a6fe3b1af8
commit
c5755ce9d0
@ -111,9 +111,9 @@
|
|||||||
|
|
||||||
$this->smarty->assign('success', ( $success )? 1 : -1 );
|
$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 $validators = array(array('content', 'content', 'notEmpty', false, false));
|
||||||
var $events = array('save');
|
var $events = array('save');
|
||||||
@ -51,7 +51,7 @@
|
|||||||
$this->smarty->assign('success', ( $success )? 1 : -1 );
|
$this->smarty->assign('success', ( $success )? 1 : -1 );
|
||||||
$this->smarty->assign('pluginconf', $str);
|
$this->smarty->assign('pluginconf', $str);
|
||||||
|
|
||||||
return $success;
|
return PANEL_REDIRECT_CURRENT;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,11 +6,7 @@
|
|||||||
|
|
||||||
{include file='shared:errorlist.tpl'}
|
{include file='shared:errorlist.tpl'}
|
||||||
|
|
||||||
<form method="post"
|
{html_form}
|
||||||
action="{$smarty.const.BLOG_BASEURL}admin.php?{$smarty.server.QUERY_STRING|escape:"html"}"
|
|
||||||
enctype="multipart/form-data">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<textarea name="content" id="content"
|
<textarea name="content" id="content"
|
||||||
@ -22,4 +18,4 @@
|
|||||||
{html_submit name="save" id="save" value=$panelstrings.submit}
|
{html_submit name="save" id="save" value=$panelstrings.submit}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
{/html_form}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user