diff --git a/example/includes/config.yml b/example/includes/config.yml index f9bf439..4a73402 100644 --- a/example/includes/config.yml +++ b/example/includes/config.yml @@ -302,6 +302,6 @@ email: catch_all: false # Web Stats JS code -webstats_js_code: '' +#webstats_js_code: '' # vim: tabstop=2 shiftwidth=2 softtabstop=2 expandtab diff --git a/example/includes/templates.php b/example/includes/templates.php index 478dc16..ee9270c 100644 --- a/example/includes/templates.php +++ b/example/includes/templates.php @@ -30,9 +30,6 @@ function define_common_template_variables($event) { $status_list:array() ); Tpl :: assign('admin', isset($admin) && $admin); - Tpl :: assign( - 'webstats_js_code', - App::get('webstats_js_code', null, 'string')); } Hook :: register('before_displaying_template', 'define_common_template_variables'); diff --git a/skel/config.yml b/skel/config.yml index 18ddd9c..9dbbfe6 100644 --- a/skel/config.yml +++ b/skel/config.yml @@ -302,6 +302,6 @@ email: catch_all: false # Web Stats JS code -webstats_js_code: '' +#webstats_js_code: '' # vim: tabstop=2 shiftwidth=2 softtabstop=2 expandtab diff --git a/src/Tpl.php b/src/Tpl.php index a0e9e43..98df157 100644 --- a/src/Tpl.php +++ b/src/Tpl.php @@ -380,6 +380,11 @@ class Tpl { // Authenticated user info if (Auth::user()) self :: assign('auth_user', Auth::user()); + + // Webstats JS code + Tpl :: assign( + 'webstats_js_code', + App::get('webstats_js_code', null, 'string')); } /**