Changeset 1164 for trunk/common/db/attachment.php
- Timestamp:
- 01/14/12 16:18:10 (4 months ago)
- File:
-
- 1 edited
-
trunk/common/db/attachment.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/db/attachment.php
r1145 r1164 151 151 // You may use % as a wildcard 152 152 function attachment_get_all($page, $name='%', $start = 0, $count = 99999999) { 153 assert(is_whole_number($start));154 assert(is_whole_number($count));153 log_assert(is_whole_number($start)); 154 log_assert(is_whole_number($count)); 155 155 $query = sprintf("SELECT ia_file.*, ia_user.username, ia_user.full_name as user_fullname 156 156 FROM ia_file … … 165 165 // _count for the above. 166 166 function attachment_get_count($page, $name='%', $start = 0, $count = 99999999) { 167 assert(is_whole_number($start));168 assert(is_whole_number($count));167 log_assert(is_whole_number($start)); 168 log_assert(is_whole_number($count)); 169 169 $query = sprintf("SELECT COUNT(*) 170 170 FROM ia_file … … 184 184 // FIXME: does this belong here? 185 185 function attachment_get_filepath($attach) { 186 assert(is_array($attach));186 log_assert(is_array($attach)); 187 187 return IA_ROOT_DIR.'attach/'. 188 188 strtolower(preg_replace('/[^a-z0-9\.\-_]/i', '_', $attach['page'])) . '_' .
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)