Changeset 2154:a70eddc75ca4 for inc/admin
- Timestamp:
- 09/29/13 16:42:19 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/lib.admincombos.php
r2049 r2154 30 30 @return <b>array</b> the combo box (form::combo -compatible format) 31 31 */ 32 public static function getCategoriesCombo($categories,$include_empty = true ) {32 public static function getCategoriesCombo($categories,$include_empty = true,$use_url = false) { 33 33 $categories_combo = array(); 34 34 if ($include_empty) { … … 38 38 $categories_combo[] = new formSelectOption ( 39 39 html::escapeHTML($categories->cat_title).' ('.$categories->nb_post.')', 40 $categories->cat_id,40 ($use_url ? $categories->cat_url : $categories->cat_id), 41 41 ($categories->level-1 ? 'sub-option'.($categories->level-1) : '') 42 42 );
Note: See TracChangeset
for help on using the changeset viewer.