Updated archive mode. Default is now admin setting.

git-svn-id: http://svn.automattic.com/wordpress/trunk@191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-06-08 00:15:39 +00:00
parent 9e3d334434
commit fce35f099c
1 changed files with 17 additions and 13 deletions

View File

@ -110,9 +110,13 @@ function single_month_title($prefix = '', $display = true ) {
}
}
function get_archives($type, $limit='') {
function get_archives($type='', $limit='') {
global $tableposts, $dateformat, $time_difference, $siteurl, $blogfilename, $querystring_start, $querystring_equal, $month, $wpdb, $start_of_week;
if ('' == $type) {
$type = get_settings('archive_mode');
}
if ('' != $limit) {
$limit = (int) $limit;
$limit = " LIMIT $limit";