Changeset 12762
- Timestamp:
- 12/18/11 00:04:49 (18 months ago)
- Files:
-
- 1 modified
-
branches/2.3/admin/include/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/admin/include/functions.php
r12643 r12762 1220 1220 $parent_id = !empty($parent_id) ? $parent_id : 'NULL'; 1221 1221 1222 $query = '1223 SELECT MAX(rank)1224 FROM '.CATEGORIES_TABLE.'1225 WHERE id_uppercat '.(is_numeric($parent_id) ? '= '.$parent_id : 'IS NULL').'1226 ;';1227 list($current_rank) = pwg_db_fetch_row(pwg_query($query));1228 1229 1222 $insert = array( 1230 1223 'name' => $category_name, 1231 'rank' => ++$current_rank,1224 'rank' => 0, 1232 1225 'commentable' => boolean_to_string($conf['newcat_default_commentable']), 1233 1226 ); … … 1298 1291 ;'; 1299 1292 pwg_query($query); 1293 1294 update_global_rank(); 1300 1295 1301 1296 if ('private' == $insert['status'])
![(please configure the [header_logo] section in trac.ini)](http://piwigo.org/screenshots/piwigo_logo_on_white.png)