From: dj3c1t Date: Sun, 15 Jun 2014 18:26:14 +0000 (+0200) Subject: syntaxe POO (visibilite) X-Git-Tag: mw_highlightjs.0.2 X-Git-Url: http://git.dj3c1t.com/?p=mw_highlightjs;a=commitdiff_plain syntaxe POO (visibilite) --- diff --git a/app/observers/mw_observer_highlightjs.php b/app/observers/mw_observer_highlightjs.php index 5d2d7ee..6bdf71c 100644 --- a/app/observers/mw_observer_highlightjs.php +++ b/app/observers/mw_observer_highlightjs.php @@ -2,7 +2,7 @@ class mw_observer_highlightjs extends mw_observer{ - function after_action(){ + public function after_action(){ $env = $this->env(); if($env->is_running("pages/view")){ $env->add_js_file($env->out_url("js/highlight.pack.js")); @@ -12,5 +12,3 @@ } } - -?> \ No newline at end of file diff --git a/mw_highlightjs.php b/mw_highlightjs.php index f2c9a54..2d69b8c 100644 --- a/mw_highlightjs.php +++ b/mw_highlightjs.php @@ -2,14 +2,12 @@ class mw_highlightjs extends mw_plugin{ - function title(){ + public function title(){ return "highlight.js"; } - function description(){ + public function description(){ return "Coloration syntaxique pour le plugin mw_pages"; } } - -?> \ No newline at end of file