Revision: 1482
Author: [email protected]
Date: Thu Dec 16 03:51:09 2010
Log: 增加对ini_get的判断
http://code.google.com/p/typecho/source/detail?r=1482
Modified:
/trunk/var/Widget/Init.php
=======================================
--- /trunk/var/Widget/Init.php Wed Sep 8 20:32:07 2010
+++ /trunk/var/Widget/Init.php Thu Dec 16 03:51:09 2010
@@ -57,7 +57,7 @@
$this->response->setContentType($options->contentType);
/** 默认时区 */
- if (!ini_get("date.timezone") &&
function_exists("date_default_timezone_set")) {
+ if (function_exists("ini_get") && !ini_get("date.timezone") &&
function_exists("date_default_timezone_set")) {
@date_default_timezone_set('UTC');
}
_______________________________________________
announce mailing list
[email protected]
http://lists.typecho.org/mailman/listinfo/announce