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:
plegall
2011-01-18 14:03:00 +00:00
parent 447bc41f71
commit 69ce218575
4 changed files with 549 additions and 485 deletions
+1 -3
View File
@@ -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':