diff --git a/utility.php b/utility.php index 61c4d9f..909a840 100644 --- a/utility.php +++ b/utility.php @@ -317,7 +317,7 @@ function cfct_template_file($dir, $file, $data = array()) { $global_vars = apply_filters('cfct_template_file_globals', array('posts', 'post', 'wp_did_header', 'wp_did_template_redirect', 'wp_query', 'wp_rewrite', 'wpdb', 'wp_version', 'wp', 'id', 'comment', 'user_ID')); if (is_array($global_vars)) { foreach ($global_vars as $global_var) { - global $$global_var; + global ${$global_var}; } } $path = '';