Changed to superglobals, and eliminated $use_cache (since we always do).

git-svn-id: https://develop.svn.wordpress.org/trunk@1108 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2004-04-20 22:56:47 +00:00
parent c9239346a5
commit 94f0cf9181
49 changed files with 432 additions and 438 deletions
+3 -3
View File
@@ -308,7 +308,7 @@ function get_archives($type='', $limit='', $format='html', $before = "", $after
}
function get_calendar($daylength = 1) {
global $wpdb, $HTTP_GET_VARS, $m, $monthnum, $year, $timedifference, $month, $weekday, $tableposts, $posts;
global $wpdb, $m, $monthnum, $year, $timedifference, $month, $weekday, $tableposts, $posts;
// Quick check. If we have no posts at all, abort!
if (!$posts) {
@@ -317,8 +317,8 @@ function get_calendar($daylength = 1) {
return;
}
if (isset($HTTP_GET_VARS['w'])) {
$w = ''.intval($HTTP_GET_VARS['w']);
if (isset($_GET['w'])) {
$w = ''.intval($_GET['w']);
}
$time_difference = get_settings('time_difference');
$add_hours = intval($time_difference);