diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index c1c538f47..024bf6286 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -1407,8 +1407,8 @@ function trackback_rdf($timezone = 0) { /***** Permalink tags *****/ function get_permalink($id=false) { - global $post, $wpdb, $tableposts, $siteurl; - global $querystring_start, $querystring_equal; + global $post, $wpdb, $tableposts; + global $file, $siteurl, $querystring_start, $querystring_equal; $rewritecode = array( '%year%', '%monthnum%',