1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 19:14:09 +02:00

Issue #3151 add an e_end to plugin class

This commit is contained in:
oudoken
2018-06-12 11:07:21 +02:00
parent 2b24346a8a
commit ff3dc03a81
2 changed files with 20 additions and 2 deletions

View File

@@ -374,6 +374,22 @@ $show = deftrue('e_POWEREDBY_DISABLE') ? "none" : "block"; // Let search engines
unset($show);
echo "\n</body>\n</html>";
//hook into the end of page buffering
//Load e_end.php files.
if (!empty($pref['e_end_list']) && is_array($pref['e_end_list']))
{
foreach($pref['e_end_list'] as $val)
{
$fname = e_PLUGIN.$val."/e_end.php"; // Do not place inside a function - BC $pref required. .
if(is_readable($fname))
{
$ret = ($e107_debug || isset($_E107['debug'])) ? include_once($fname) : @include_once($fname);
}
}
unset($ret);
}
//
// I Send the buffered page data, along with appropriate headers