Update go.php

to allow the developers  to defining the path of their templates
This commit is contained in:
Mitan Omar
2019-02-13 19:41:51 +01:00
committed by GitHub
parent 0b27ecb1f8
commit de5da559c2

3
go.php
View File

@@ -19,6 +19,7 @@ require_once 'includes/common.php';
$current_go_case = g('go'); $current_go_case = g('go');
$show_style = true; $show_style = true;
$styleePath = null;
is_array($plugin_run_result = Plugins::getInstance()->run('begin_go_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook is_array($plugin_run_result = Plugins::getInstance()->run('begin_go_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook
@@ -675,6 +676,6 @@ $titlee = empty($titlee) ? '' : $titlee;
if($show_style) if($show_style)
{ {
Saaheader($titlee); Saaheader($titlee);
echo $tpl->display($stylee); echo $tpl->display($stylee , $styleePath);
Saafooter(); Saafooter();
} }