protected function themeRenameAction()
 {
     try {
         $theme = new waTheme(waRequest::post('theme'));
         $id = $theme->move(waRequest::post('id'), array('name' => waRequest::post('name')))->id;
         $this->logAction('theme_rename');
         $this->displayJson(array('redirect' => "{$this->design_url}theme={$id}&action=theme"));
     } catch (waException $e) {
         $this->displayJson(array(), $e->getMessage());
     }
 }