From 393ba90a604220b44638d26ef10f176c95be0286 Mon Sep 17 00:00:00 2001 From: deeptiboddapati Date: Thu, 23 Feb 2017 15:56:05 -0600 Subject: [PATCH] removed global variable variable for php7 --- utility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = '';