Index: plugin.php =================================================================== --- a/plugin.php +++ b/plugin.php @@ -1,47 +1,43 @@ -$anwiki_data = FALSE; +$template_data = NULL; -function get_anwiki_template_path() +function get_site_template_path() { global $prefs; - return $prefs['tempdir'].DS.'anwiki_template'; + return $prefs['tempdir'].DS.'site_template'; } -function read_anwiki_data() +function read_template_data() { - global $anwiki_data; + global $template_data; - $data = file_get_contents(get_anwiki_template_path()); + $data = file_get_contents(get_site_template_path()); $header = preg_replace('/<\\/header>.*/s', '', $data); + $header = preg_replace('/]*\brel="canonical"[^>]*>/s', '', $header); $header = preg_replace('/