| @@ 47-57 (lines=11) @@ | ||
| 44 | $rejectedstartitem = Request::getInt('rejectedstartitem'); |
|
| 45 | ||
| 46 | switch ($op) { |
|
| 47 | case "clone": |
|
| 48 | if ($itemid == 0) { |
|
| 49 | $totalcategories = $publisher->getCategoryHandler()->getCategoriesCount(-1); |
|
| 50 | if ($totalcategories == 0) { |
|
| 51 | $xoops->redirect("category.php?op=mod", 3, _AM_PUBLISHER_NEED_CATEGORY_ITEM); |
|
| 52 | ||
| 53 | } |
|
| 54 | } |
|
| 55 | PublisherUtils::cpHeader(); |
|
| 56 | publisher_editItem(true, $itemid, true); |
|
| 57 | break; |
|
| 58 | ||
| 59 | case "mod": |
|
| 60 | if ($itemid == 0) { |
|
| @@ 59-70 (lines=12) @@ | ||
| 56 | publisher_editItem(true, $itemid, true); |
|
| 57 | break; |
|
| 58 | ||
| 59 | case "mod": |
|
| 60 | if ($itemid == 0) { |
|
| 61 | $totalcategories = $publisher->getCategoryHandler()->getCategoriesCount(-1); |
|
| 62 | if ($totalcategories == 0) { |
|
| 63 | $xoops->redirect("category.php?op=mod", 3, _AM_PUBLISHER_NEED_CATEGORY_ITEM); |
|
| 64 | exit(); |
|
| 65 | } |
|
| 66 | } |
|
| 67 | ||
| 68 | PublisherUtils::cpHeader(); |
|
| 69 | publisher_editItem(true, $itemid); |
|
| 70 | break; |
|
| 71 | ||
| 72 | case "additem": |
|
| 73 | // Creating the item object |
|