diff --git a/plugin.syntaxhighlighter.php b/plugin.syntaxhighlighter.php index 0d693a3..9ec6ed5 100644 --- a/plugin.syntaxhighlighter.php +++ b/plugin.syntaxhighlighter.php @@ -28,7 +28,6 @@ SOFTWARE. */ -$config = include('config.php'); function plugin_syntaxhighlighter_add($lang=null) { static $languages = array(); @@ -46,6 +45,8 @@ function plugin_syntaxhighlighter_add($lang=null) { function plugin_syntaxhighlighter_head() { + + $config = include('config.php'); $pdir=plugin_geturl('syntaxhighlighter'); echo << @@ -62,6 +63,7 @@ add_action('wp_head', 'plugin_syntaxhighlighter_head'); function plugin_syntaxhighlighter_foot() { + $config = include('config.php'); // convert the returned array into a json one, to have an easier time // giving it to the javascript below $used_languages = json_encode(plugin_syntaxhighlighter_add()); @@ -71,7 +73,7 @@ function plugin_syntaxhighlighter_foot() { echo << - +