mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/11924] Fix some minor issues with the php event docs
PHPBB3-11924
This commit is contained in:
@@ -1470,7 +1470,7 @@ class acp_forums
|
|||||||
/**
|
/**
|
||||||
* Event when we move content from one forum to another
|
* Event when we move content from one forum to another
|
||||||
*
|
*
|
||||||
* @event core.acp_manage_forums_move_children
|
* @event core.acp_manage_forums_move_content
|
||||||
* @var int from_id If of the current parent forum
|
* @var int from_id If of the current parent forum
|
||||||
* @var int to_id If of the new parent forum
|
* @var int to_id If of the new parent forum
|
||||||
* @var bool sync Shall we sync the "to"-forum's data
|
* @var bool sync Shall we sync the "to"-forum's data
|
||||||
|
@@ -5609,14 +5609,14 @@ function garbage_collection()
|
|||||||
global $cache, $db;
|
global $cache, $db;
|
||||||
global $phpbb_dispatcher;
|
global $phpbb_dispatcher;
|
||||||
|
|
||||||
|
if (!empty($phpbb_dispatcher))
|
||||||
|
{
|
||||||
/**
|
/**
|
||||||
* Unload some objects, to free some memory, before we finish our task
|
* Unload some objects, to free some memory, before we finish our task
|
||||||
*
|
*
|
||||||
* @event core.garbage_collection
|
* @event core.garbage_collection
|
||||||
* @since 3.1-A1
|
* @since 3.1-A1
|
||||||
*/
|
*/
|
||||||
if (!empty($phpbb_dispatcher))
|
|
||||||
{
|
|
||||||
$phpbb_dispatcher->dispatch('core.garbage_collection');
|
$phpbb_dispatcher->dispatch('core.garbage_collection');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -64,7 +64,7 @@ class ucp_zebra
|
|||||||
* @var array user_ids User ids we remove
|
* @var array user_ids User ids we remove
|
||||||
* @since 3.1-A1
|
* @since 3.1-A1
|
||||||
*/
|
*/
|
||||||
$vars = array('user_ids');
|
$vars = array('mode', 'user_ids');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.ucp_remove_zebra', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.ucp_remove_zebra', compact($vars)));
|
||||||
|
|
||||||
$sql = 'DELETE FROM ' . ZEBRA_TABLE . '
|
$sql = 'DELETE FROM ' . ZEBRA_TABLE . '
|
||||||
|
@@ -1525,7 +1525,7 @@ $template->assign_vars(array(
|
|||||||
* @event core.posting_modify_template_vars
|
* @event core.posting_modify_template_vars
|
||||||
* @since 3.1-A1
|
* @since 3.1-A1
|
||||||
*/
|
*/
|
||||||
$phpbb_dispatcher->trigger_event('core.posting_modify_template_vars');
|
$phpbb_dispatcher->dispatch('core.posting_modify_template_vars');
|
||||||
|
|
||||||
// Build custom bbcodes array
|
// Build custom bbcodes array
|
||||||
display_custom_bbcodes();
|
display_custom_bbcodes();
|
||||||
|
Reference in New Issue
Block a user