Fix die naming compatibility
This commit is contained in:
@@ -255,7 +255,7 @@ class helper extends baseHelper
|
||||
* @param string $content
|
||||
* @return void
|
||||
*/
|
||||
public static function die($content)
|
||||
public static function end($content)
|
||||
{
|
||||
throw EndResponseException::create($content);
|
||||
}
|
||||
|
||||
@@ -826,7 +826,7 @@ class my extends control
|
||||
$_POST['account'] = $this->app->user->account;
|
||||
$_POST['groups'] = $this->dao->select('`group`')->from(TABLE_USERGROUP)->where('account')->eq($this->post->account)->fetchPairs('group', 'group');
|
||||
$this->user->update($this->app->user->id);
|
||||
if(dao::isError()) helper::die(js::error(dao::getError()));
|
||||
if(dao::isError()) helper::end(js::error(dao::getError()));
|
||||
echo js::locate($this->createLink('my', 'profile'), 'parent');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user