فهرست منبع

Merge pull request #212 from gregfedorov/master

Easing the life of a noob on get go, making sure nothing errors out.
picocms 10 سال پیش
والد
کامیت
cee070f64e
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 4 0
      config.php.template
  2. 1 1
      lib/pico.php

+ 4 - 0
config.php.template

@@ -17,6 +17,10 @@ $config['pages_order'] = 'asc';			    // Order pages "asc" or "desc"
 $config['excerpt_length'] = 50;			    // The pages excerpt length (in words)
 $config['content_dir'] = 'content-sample/'; // Content directory.
 
+// Specify timezone if required
+
+date_default_timezone_set('UTC');
+
 // To add a custom config setting:
 
 $config['custom_setting'] = 'Hello'; 	// Can be accessed by {{ config.custom_setting }} in a theme

+ 1 - 1
lib/pico.php

@@ -247,7 +247,7 @@ class Pico {
 				'date' => isset($page_meta['date']) ? $page_meta['date'] : '',
 				'date_formatted' => isset($page_meta['date']) ? utf8_encode(strftime($config['date_format'], strtotime($page_meta['date']))) : '',
 				'content' => $page_content,
-				'excerpt' => $this->limit_words(strip_tags($page_content), $excerpt_length)
+				'excerpt' => $this->limit_words(strip_tags($page_content), $excerpt_length),
 				//this addition allows the 'description' meta to be picked up in content areas... specifically to replace 'excerpt'
 				'description' => isset($page_meta['description']) ? $page_meta['description'] : '',