mirror of
https://git.beihong.wang/wangbeihong/blog-source.git
synced 2026-04-23 14:43:05 +08:00
initial
This commit is contained in:
27
var/Widget/ExceptionHandle.php
Executable file
27
var/Widget/ExceptionHandle.php
Executable file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Widget;
|
||||
|
||||
if (!defined('__TYPECHO_ROOT_DIR__')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 异常处理组件
|
||||
*
|
||||
* @author qining
|
||||
* @category typecho
|
||||
* @package Widget
|
||||
* @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org)
|
||||
* @license GNU General Public License 2.0
|
||||
*/
|
||||
class ExceptionHandle extends Base
|
||||
{
|
||||
/**
|
||||
* 重载构造函数
|
||||
*/
|
||||
public function execute()
|
||||
{
|
||||
Archive::allocWithAlias('404', 'type=404')->render();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user