Commit 9d5e37ed authored by chealer's avatar chealer

stop setting Smarty $categ_checked, unused after r15071

parent a98f5572
......@@ -80,7 +80,6 @@ if ($prefs['feature_categories'] == 'y' && isset($cat_type) && isset($cat_objid)
$categories[$i]["incat"] = 'y';
// allow to preselect categories when creating a new article
// like this: /tiki-edit_article.php?cat_categories[]=1&cat_categorize=on
$smarty->assign('categ_checked', 'y');
} else {
$categories[$i]["incat"] = 'n';
}
......
......@@ -1298,13 +1298,6 @@ if ($structlib->page_is_in_structure($_REQUEST["page"])) {
// so no need to show comments & attachments, but need
// to show 'wiki quick help'
$smarty->assign('edit_page', 'y');
$smarty->assign('categ_checked', 'n');
// Set variables so the preview page will keep the newly inputted category information
if (isset($_REQUEST['cat_categorize'])) {
if ($_REQUEST['cat_categorize'] === 'on') {
$smarty->assign('categ_checked', 'y');
}
}
if ($prefs['wiki_feature_copyrights'] === 'y' && $tiki_p_edit_copyrights === 'y') {
include_once ('lib/copyrights/copyrightslib.php');
$copyrightslib = new CopyrightsLib;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment