Diff for Metafox/db.inc.php between version 1.16 and 1.17
| version 1.16, 2006/03/29 09:38:31 |
version 1.17, 2006/05/19 07:11:16 |
| Line 423 function ezin_get_article_list($section_ |
|
| Line 423 function ezin_get_article_list($section_ |
|
| $query .= ' AND sections.type != "hidden2" AND articles.status != "partly_showed"'; |
$query .= ' AND sections.type != "hidden2" AND articles.status != "partly_showed"'; |
| } |
} |
| } |
} |
| $query .= ' ORDER BY'; |
$query .= ' ORDER BY articles.datetime ' |
| $query .= ' articles.datetime '.($ezin_cfg['order_articles_desc'] ? 'DESC' : 'ASC'); |
.($ezin_cfg['order_articles_desc'] ? 'DESC' : 'ASC') |
| $query .= ',articles.id ' .($ezin_cfg['order_articles_desc'] ? 'DESC' : 'ASC'); |
.', articles.id DESC'; |
| if ($limit > 0) { |
if ($limit > 0) { |
| $query .= ' LIMIT '.$limit; |
$query .= ' LIMIT '.$limit; |
| } |
} |
| Line 481 function ezin_get_article_list_counts($s |
|
| Line 481 function ezin_get_article_list_counts($s |
|
| } |
} |
| $query .= ' ORDER BY articles.datetime ' |
$query .= ' ORDER BY articles.datetime ' |
| .($ezin_cfg['order_articles_desc'] ? 'DESC' : 'ASC') |
.($ezin_cfg['order_articles_desc'] ? 'DESC' : 'ASC') |
| .', articles.id ASC'; |
.', articles.id DESC'; |
| if ($limit > 0) { |
if ($limit > 0) { |
| $query .= ' LIMIT '.$limit; |
$query .= ' LIMIT '.$limit; |
| } |
} |
Platon Group <platon@platon.org> http://platon.org/
|
|