diff options
Diffstat (limited to 'libs/Utils.php')
| -rw-r--r-- | libs/Utils.php | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/libs/Utils.php b/libs/Utils.php index 3d62f77..27d7658 100644 --- a/libs/Utils.php +++ b/libs/Utils.php @@ -1,6 +1,14 @@ <?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; +/** + * Utils.php + * 辅助工具 + * + * Author: Eltrac(BigCoke233) + * License: MIT + */ + class Utils { @@ -142,19 +150,6 @@ class Utils } /** - * 获取最早文章创建时间 - */ - public static function getOldestPostDate() { - $db = Typecho_Db::get(); - $content = $db->fetchRow($db->select()->from('table.contents') - ->where('table.contents.status = ?', 'publish') - ->where('table.contents.password IS NULL') - ->order('table.contents.created', Typecho_Db::SORT_ASC) - ->limit(1)); - echo '一切开始于 '.date('Y-m-d', $content['created']); - } - - /** * 缩略图 */ public static function postBanner($post){ |
