Changeset 11854 for branches/2.2/admin/include/functions.php
- Timestamp:
- Jul 30, 2011, 6:53:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/admin/include/functions.php
r11727 r11854 2116 2116 $taglist, 2117 2117 array( 2118 'name' => $row[' tag_name'],2119 'id' => '~~'.$row[' tag_id'].'~~',2118 'name' => $row['name'], 2119 'id' => '~~'.$row['id'].'~~', 2120 2120 ) 2121 2121 ); … … 2128 2128 } 2129 2129 2130 function get_tag_ids($raw_tags )2130 function get_tag_ids($raw_tags, $allow_create=true) 2131 2131 { 2132 2132 // In $raw_tags we receive something like array('~~6~~', '~~59~~', 'New … … 2144 2144 array_push($tag_ids, $matches[1]); 2145 2145 } 2146 else 2146 elseif ($allow_create) 2147 2147 { 2148 2148 // we have to create a new tag 2149 array_push( 2150 $tag_ids, 2151 tag_id_from_tag_name($raw_tag) 2152 ); 2149 $tag_ids[] = tag_id_from_tag_name($raw_tag); 2153 2150 } 2154 2151 }
Note: See TracChangeset
for help on using the changeset viewer.