Misc small fixes, plus a new hook in tag.php
This commit is contained in:
parent
abe4be5438
commit
a3da5b24c9
|
@ -141,7 +141,7 @@ StartLogout: Before logging out
|
||||||
EndLogout: After logging out
|
EndLogout: After logging out
|
||||||
- $action: the logout action
|
- $action: the logout action
|
||||||
|
|
||||||
ArgsInitialized: After the argument array has been initialized
|
ArgsInitialize: After the argument array has been initialized
|
||||||
- $args: associative array of arguments, can be modified
|
- $args: associative array of arguments, can be modified
|
||||||
|
|
||||||
StartAddressData: Allows the site owner to provide additional information about themselves for contact (e.g., tagline, email, location)
|
StartAddressData: Allows the site owner to provide additional information about themselves for contact (e.g., tagline, email, location)
|
||||||
|
|
|
@ -102,12 +102,17 @@ class TagAction extends Action
|
||||||
|
|
||||||
function showContent()
|
function showContent()
|
||||||
{
|
{
|
||||||
$nl = new NoticeList($this->notice, $this);
|
if(Event::handle('StartTagShowContent', array($this))) {
|
||||||
|
|
||||||
|
$nl = new NoticeList($this->notice, $this);
|
||||||
|
|
||||||
$cnt = $nl->show();
|
$cnt = $nl->show();
|
||||||
|
|
||||||
$this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
|
$this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
|
||||||
$this->page, 'tag', array('tag' => $this->tag));
|
$this->page, 'tag', array('tag' => $this->tag));
|
||||||
|
|
||||||
|
Event::handle('EndTagShowContent', array($this))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function isReadOnly($args)
|
function isReadOnly($args)
|
||||||
|
|
|
@ -105,7 +105,7 @@ class RSSCloudPlugin extends Plugin
|
||||||
* @return boolean hook return
|
* @return boolean hook return
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function onRouterInitialized(&$m)
|
function onRouterInitialized($m)
|
||||||
{
|
{
|
||||||
$m->connect('/main/rsscloud/request_notify',
|
$m->connect('/main/rsscloud/request_notify',
|
||||||
array('action' => 'RSSCloudRequestNotify'));
|
array('action' => 'RSSCloudRequestNotify'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user