From ba0f9c0f6b7a576adb0eab1ceba2efc84de01826 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Fri, 20 Feb 2004 01:14:33 +0000 Subject: [PATCH] michel is being anal with single quotes git-svn-id: http://svn.automattic.com/wordpress/trunk@894 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template-functions-general.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/wp-includes/template-functions-general.php b/wp-includes/template-functions-general.php index 241f02a7ef..5bbd41c4bc 100644 --- a/wp-includes/template-functions-general.php +++ b/wp-includes/template-functions-general.php @@ -365,7 +365,7 @@ function get_calendar($daylength = 1) { '; foreach ($weekday as $wd) { - echo "\n\t\t" . substr($wd, 0, $daylength) . ''; + echo "\n\t\t" . substr($wd, 0, $daylength) . ''; } echo ' @@ -405,7 +405,7 @@ function get_calendar($daylength = 1) { FROM $tableposts WHERE MONTH(post_date) = $thismonth AND YEAR(post_date) = $thisyear AND post_status = 'publish' - AND post_date < '" . date("Y-m-d H:i:s", (time() + ($time_difference * 3600)))."'", ARRAY_N); + AND post_date < '" . date('Y-m-d H:i:s', (time() + ($time_difference * 3600))).'\'', ARRAY_N); if ($dayswithposts) { foreach ($dayswithposts as $daywith) { $daywithpost[] = $daywith[0]; @@ -416,12 +416,12 @@ function get_calendar($daylength = 1) { - if (strstr($_SERVER["HTTP_USER_AGENT"], "MSIE") || - strstr(strtolower($_SERVER["HTTP_USER_AGENT"]), "camino") || - strstr(strtolower($_SERVER["HTTP_USER_AGENT"]), "safari")) { + if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') || + strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'camino') || + strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'safari')) { $ak_title_separator = "\n"; } else { - $ak_title_separator = ", "; + $ak_title_separator = ', '; } $ak_titles_for_day = array(); @@ -434,8 +434,8 @@ function get_calendar($daylength = 1) { ); if ($ak_post_titles) { foreach ($ak_post_titles as $ak_post_title) { - if (empty($ak_titles_for_day["day_".$ak_post_title->dom])) { - $ak_titles_for_day["day_".$ak_post_title->dom] = ''; + if (empty($ak_titles_for_day['day_'.$ak_post_title->dom])) { + $ak_titles_for_day['day_'.$ak_post_title->dom] = ''; } if (empty($ak_titles_for_day["$ak_post_title->dom"])) { // first one $ak_titles_for_day["$ak_post_title->dom"] .= htmlspecialchars(stripslashes($ak_post_title->post_title)); @@ -448,7 +448,7 @@ function get_calendar($daylength = 1) { // See how much we should pad in the beginning $pad = intval(date('w', $unixmonth)); - if (0 != $pad) echo "\n\t\t "; + if (0 != $pad) echo "\n\t\t".' '; $daysinmonth = intval(date('t', $unixmonth)); for ($day = 1; $day <= $daysinmonth; ++$day) { @@ -474,7 +474,7 @@ function get_calendar($daylength = 1) { $pad = 7 - date('w', mktime(0, 0 , 0, $thismonth, $day, $thisyear)); if ($pad != 0 && $pad != 7) - echo "\n\t\t "; + echo "\n\t\t".' '; echo "\n\t\n\t\n\t"; }