mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
feature:3126
Apply on subalbum checkbox about comments git-svn-id: http://piwigo.org/svn/trunk@29265 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -132,6 +132,16 @@ if (isset($_POST['submit']))
|
||||
$data,
|
||||
array('id' => $data['id'])
|
||||
);
|
||||
if ($_POST['apply_commentable_on_sub'])
|
||||
{
|
||||
$subcats = get_subcat_ids(array('id' => $data['id']));
|
||||
$query = '
|
||||
UPDATE '.CATEGORIES_TABLE.'
|
||||
SET commentable = \''.$data['commentable'].'\'
|
||||
WHERE id IN ('.implode(',', $subcats).')
|
||||
;';
|
||||
pwg_query($query);
|
||||
}
|
||||
|
||||
// retrieve cat infos before continuing (following updates are expensive)
|
||||
$cat_info = get_cat_info($_GET['cat_id']);
|
||||
|
||||
Reference in New Issue
Block a user