Changeset 987 for trunk/common
- Timestamp:
- 01/20/09 02:39:25 (3 years ago)
- Location:
- trunk/common
- Files:
-
- 4 added
- 1 edited
-
db/textblock.php (modified) (3 diffs)
-
external_libs/class.phpmailer.php (added)
-
external_libs/class.smtp.php (added)
-
newsletter.php (added)
-
newsletter_template.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/db/textblock.php
r981 r987 72 72 function textblock_complex_query($options) 73 73 { 74 // log_print_r($options);74 // log_print_r($options); 75 75 76 76 $field_list = "`name`, `title`, `creation_timestamp`, `timestamp`, `security`, `user_id`, `forum_topic`"; … … 112 112 $where, $where, $order, $options['limit_start'], $options['limit_count']); 113 113 } else { 114 $query = "SELECT $field_list FROM ia_textblock $join $where"; 115 } 116 //log_print("QUERY: " . $query); 114 $query = "SELECT $field_list FROM ia_textblock 115 $join $where ORDER BY ia_textblock.`creation_timestamp` $order"; 116 } 117 // log_print("QUERY: " . $query); 117 118 return db_fetch_all($query); 118 119 } … … 166 167 // Get all textblocks(without content) with a certain prefix). 167 168 // Ordered by name. 168 function textblock_get_by_prefix($prefix, $content = false, $username = false) { 169 function textblock_get_by_prefix($prefix, $content = false, $username = false, 170 $order = 'asc') { 169 171 return textblock_complex_query(array( 170 172 'content' => $content, 171 173 'username' => $username, 172 174 'prefix' => $prefix, 175 'order' => $order, 173 176 )); 174 177 }
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)