$this->RedirectToTab($id); } else { if (isset($params['submit'])) { // submit pressed. // get the parameters if (isset($params['category_name'])) { $dest_catname = trim($params['category_name']); } if (isset($params['category_desc'])) { $dest_catdesc = trim($params['category_desc']); } if (isset($params['category_path'])) { $dest_catpath = trim($params['category_path']); } $copyfiles = $params['copyfiles']; Uploads::load_admin(); $error = _uploads_CopyCategory($this, $category_id, $dest_catname, $dest_catpath, $dest_catdesc, true, true); if (empty($error)) { $this->SetMessage($this->Lang('category_copied')); $this->RedirectToTab($id); } echo $this->ShowErrors($error); } } // on submit // // give everything to smarty // $smarty->assign('category', $category); $smarty->assign('formstart', $this->CGCreateFormStart($id, 'admin_copycategory', $returnid, $params)); $smarty->assign('formend', $this->CreateFormEnd());
protected function _AdminDoDeleteUpload($upload_id, $delete_file = false) { Uploads::load_admin(); return _uploads_AdminDoDeleteUpload($this, $upload_id, $delete_file); }