mirror of
https://github.com/kokororin/typecho-plugin-Access.git
synced 2025-01-14 06:10:06 +08:00
fix: activate plugin may result in null exception
This commit is contained in:
parent
b1610eda68
commit
b585949d66
@ -29,7 +29,7 @@ class Access_Plugin implements Typecho_Plugin_Interface
|
||||
Typecho_Plugin::factory('Widget_Archive')->beforeRender = array('Access_Plugin', 'backend');
|
||||
Typecho_Plugin::factory('Widget_Archive')->footer = array('Access_Plugin', 'frontend');
|
||||
Typecho_Plugin::factory('admin/footer.php')->end = array('Access_Plugin', 'adminFooter');
|
||||
return _t($msg);
|
||||
return $msg ? _t($msg) : '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user