mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
issue 46 apply validator to page module.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8541 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9885e98591
commit
db14f45898
16 changed files with 130 additions and 23 deletions
|
|
@ -23,7 +23,7 @@
|
|||
// Set board module
|
||||
$args = Context::getRequestVars();
|
||||
$args->module = 'page';
|
||||
$args->mid = $args->page_name;
|
||||
$args->mid = $args->page_name; //because if mid is empty in context, set start page mid
|
||||
unset($args->page_name);
|
||||
|
||||
if($args->use_mobile != 'Y') $args->use_mobile = '';
|
||||
|
|
@ -78,8 +78,21 @@
|
|||
$this->add("page", Context::get('page'));
|
||||
$this->add('module_srl',$output->get('module_srl'));
|
||||
$this->setMessage($msg_code);
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'module_srl', $output->get('module_srl'), 'act', 'dispPageAdminInfo');
|
||||
header('location:'.$returnUrl);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Page Modify
|
||||
**/
|
||||
function procPageAdminUpdate()
|
||||
{
|
||||
$this->procPageAdminInsert();
|
||||
}
|
||||
|
||||
function putDocumentsInPageToArray($target, &$array)
|
||||
{
|
||||
if(!$target) return;
|
||||
|
|
@ -163,6 +176,11 @@
|
|||
$this->add('module','page');
|
||||
$this->add('page',Context::get('page'));
|
||||
$this->setMessage('success_deleted');
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) {
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'module_srl', $output->get('module_srl'), 'act', 'dispPageAdminInfo');
|
||||
header('location:'.$returnUrl);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue