aboutsummaryrefslogtreecommitdiffstats
path: root/admin/cat_options.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-02-28 00:16:53 +0000
committerrvelices <rv-github@modusoptimus.com>2007-02-28 00:16:53 +0000
commit30e259904cc38172b2b730455009455675f0d8f5 (patch)
treeb454d1d0e8c2ee75eb2bb4e41b0658f833a5a1a2 /admin/cat_options.php
parentfec44b7f888783afeb99f256a07cfcef185d2110 (diff)
admin pages: merge Categories/comments page into Configuration/comments page
(they are related and we reduce the # of links in the menu) git-svn-id: http://piwigo.org/svn/trunk@1865 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/cat_options.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/admin/cat_options.php b/admin/cat_options.php
index 8aaf4ad14..305c764c1 100644
--- a/admin/cat_options.php
+++ b/admin/cat_options.php
@@ -60,16 +60,6 @@ UPDATE '.CATEGORIES_TABLE.'
pwg_query($query);
break;
}
- case 'comments' :
- {
- $query = '
-UPDATE '.CATEGORIES_TABLE.'
- SET commentable = \'false\'
- WHERE id IN ('.implode(',', $_POST['cat_true']).')
-;';
- pwg_query($query);
- break;
- }
case 'visible' :
{
set_cat_visible($_POST['cat_true'], 'false');
@@ -108,16 +98,6 @@ UPDATE '.CATEGORIES_TABLE.'
pwg_query($query);
break;
}
- case 'comments' :
- {
- $query = '
-UPDATE '.CATEGORIES_TABLE.'
- SET commentable = \'true\'
- WHERE id IN ('.implode(',', $_POST['cat_false']).')
-;';
- pwg_query($query);
- break;
- }
case 'visible' :
{
set_cat_visible($_POST['cat_false'], 'true');
@@ -205,27 +185,6 @@ SELECT id,name,uppercats,global_rank
);
break;
}
- case 'comments' :
- {
- $query_true = '
-SELECT id,name,uppercats,global_rank
- FROM '.CATEGORIES_TABLE.'
- WHERE commentable = \'true\'
-;';
- $query_false = '
-SELECT id,name,uppercats,global_rank
- FROM '.CATEGORIES_TABLE.'
- WHERE commentable = \'false\'
-;';
- $template->assign_vars(
- array(
- 'L_SECTION' => $lang['cat_comments_title'],
- 'L_CAT_OPTIONS_TRUE' => $lang['authorized'],
- 'L_CAT_OPTIONS_FALSE' => $lang['forbidden'],
- )
- );
- break;
- }
case 'visible' :
{
$query_true = '