Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ticket/13110] Add core event to the page_footer() function #3000

Merged
merged 1 commit into from Oct 2, 2014

Conversation

rxu
Copy link
Contributor

@rxu rxu commented Sep 28, 2014

Add core event to the page_footer() in includes/functions.php to allow
extensions handling overall page output before its displaying.

PHPBB3-13110.

@rxu rxu force-pushed the ticket/13110 branch 2 times, most recently from a4352be to eb2aa1f Compare September 28, 2014 07:39
Add core event to the page_footer() in includes/functions.php to allow
extensions handling overall page output before its displaying.

PHPBB3-13110
*
* @since 3.1.0-RC5
*/
$vars = array('display_template', 'exit_handler');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need these variables?
Sounds pretty dangerous to me

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nickvergessen Yes, in case you would like to override default output behavior, f.e. filter the whole page before displaying etc., roughly

 
ob_start();
$this->template->display('body');
$content = ob_get_clean();
/* Do something with $content here */
$event['display_template'] = false;

nickvergessen added a commit to nickvergessen/phpbb that referenced this pull request Oct 2, 2014
[ticket/13110] Add core event to the page_footer() function
@nickvergessen nickvergessen merged commit eb2aa1f into phpbb:develop-ascraeus Oct 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants