Permalink
Browse files

removed global variable variable for php7

  • Loading branch information...
1 parent ee7c615 commit 393ba90a604220b44638d26ef10f176c95be0286 @deeptiboddapati deeptiboddapati committed Feb 23, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 utility.php
View
@@ -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 = '';

0 comments on commit 393ba90

Please sign in to comment.