mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-19 08:02:59 +02:00
bug fixed: no more categories.uploadable column when creating a new category
split the admin/photos_add_direct.php script into admin/include/photos_add_direct_prepare.php (prepare the upload form) + admin/include/photos_add_direct_process.inc.php (process the submitted form) : it makes the upload form backend easier to reuse in the future Community plugin. git-svn-id: http://piwigo.org/svn/trunk@8734 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1225,7 +1225,6 @@ SELECT MAX(rank)
|
||||
'name' => $category_name,
|
||||
'rank' => ++$current_rank,
|
||||
'commentable' => boolean_to_string($conf['newcat_default_commentable']),
|
||||
'uploadable' => 'false',
|
||||
);
|
||||
|
||||
if ($parent_id != 'NULL')
|
||||
@@ -1276,7 +1275,7 @@ SELECT id, uppercats, global_rank, visible, status
|
||||
CATEGORIES_TABLE,
|
||||
array(
|
||||
'site_id', 'name', 'id_uppercat', 'rank', 'commentable',
|
||||
'uploadable', 'visible', 'status', 'global_rank',
|
||||
'visible', 'status', 'global_rank',
|
||||
),
|
||||
array($insert)
|
||||
);
|
||||
@@ -1984,7 +1983,6 @@ function get_active_menu($menu_page)
|
||||
switch ($menu_page)
|
||||
{
|
||||
case 'photos_add':
|
||||
case 'upload':
|
||||
case 'rating':
|
||||
case 'tags':
|
||||
case 'picture_modify':
|
||||
|
||||
Reference in New Issue
Block a user