Commit 66d411ee1a85ecff94dcfccec758954b2b30564d

Authored by nbm
1 parent ea3c5bb8

Clean up uncommented code.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3491 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/help/manageHelp.php
... ... @@ -13,8 +13,6 @@ require_once(KT_LIB_DIR . "/dispatcher.inc.php");
13 13 $sectionName = "Administration";
14 14 require_once(KT_DIR . "/presentation/webpageTemplate.inc");
15 15  
16   -// require_once(KT_DIR . "/FCKeditor/fckeditor.php");
17   -
18 16 class ManageHelpDispatcher extends KTAdminDispatcher {
19 17 function do_main() {
20 18 return $this->getData();
... ... @@ -109,47 +107,6 @@ class ManageHelpDispatcher extends KTAdminDispatcher {
109 107 }
110 108 }
111 109  
112   -/*
113   -$id = KTUtil::arrayGet($_REQUEST, 'id');
114   -if ($id) {
115   - $action = KTUtil::arrayGet($_REQUEST, 'action');
116   - if ($action === "updateReplacement") {
117   - $oHelpReplacement =& KTHelpReplacement::get($id);
118   - if (PEAR::isError($oHelpReplacement)) {
119   - $_SESSION['KTErrorMessage'][] = "Help for that item not found";
120   - exit(controllerRedirect('manageHelp'));
121   - }
122   - $description = KTUtil::arrayGet($_REQUEST, 'description');
123   - if ($description) {
124   - $oHelpReplacement->setDescription($description);
125   - $res = $oHelpReplacement->update();
126   - if (PEAR::isError($res)) {
127   - $_SESSION['KTErrorMessage'][] = "Error updating
128   - object";
129   - $data = getReplacementItemData($id);
130   - } else {
131   - $_SESSION['KTErrorMessage'][] = "Updated";
132   - exit(controllerRedirect('manageHelp'));
133   - }
134   - } else {
135   - $_SESSION['KTErrorMessage'][] = "No description given";
136   - $data = getReplacementItemData($id);
137   - }
138   - } else {
139   - $data = getReplacementItemData($id);
140   - }
141   -} else {
142   - $data = getData();
143   -}
144   -
145   -// $sectionName = "Administration";
146   -
147   -// require_once(KT_DIR . "/presentation/webpageTemplate.inc");
148   -// $main->bFormDisabled = true;
149   -// $main->setCentralPayload($data);
150   -// $main->render();
151   -*/
152   -
153 110 $oDispatcher = new ManageHelpDispatcher();
154 111 $oDispatcher->dispatch();
155 112  
... ...