new feature: source/destination links between categories. Will we keep this
feature? Code is complicated and very few people will understand how it works... modification: #images.storage_category_id replaced by #image_category.is_storage improvement: many code refactoring to improve readibility improvement: virtual category creation code was moved to a dedicated function in order to be called from admin/cat_list.php and admin/cat_modify.php (create a new destination category) git-svn-id: http://piwigo.org/svn/trunk@1064 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
c4874071ba
commit
c08fa6f67e
16 changed files with 1317 additions and 288 deletions
|
|
@ -171,11 +171,13 @@ if (isset($_POST['dismiss'])
|
|||
$query = '
|
||||
SELECT *
|
||||
FROM '.IMAGES_TABLE.'
|
||||
INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON image_id = id
|
||||
WHERE id = '.$_GET['image_id'].'
|
||||
AND is_storage = \'true\'
|
||||
;';
|
||||
$row = mysql_fetch_array(pwg_query($query));
|
||||
|
||||
$storage_category_id = $row['storage_category_id'];
|
||||
$storage_category_id = $row['category_id'];
|
||||
|
||||
// Navigation path
|
||||
|
||||
|
|
@ -341,7 +343,7 @@ SELECT id,name,uppercats,global_rank
|
|||
FROM '.CATEGORIES_TABLE.'
|
||||
INNER JOIN '.IMAGE_CATEGORY_TABLE.' ON id = category_id
|
||||
WHERE image_id = '.$_GET['image_id'].'
|
||||
AND id != '.$storage_category_id.'
|
||||
AND is_storage = \'false\'
|
||||
;';
|
||||
display_select_cat_wrapper($query, array(), 'associated_option');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue