Skip to content

Commit

Permalink
removed global variable variable for php7
Browse files Browse the repository at this point in the history
  • Loading branch information
deeptiboddapati committed Feb 23, 2017
1 parent ee7c615 commit 393ba90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
Expand Down

0 comments on commit 393ba90

Please sign in to comment.