From cec35c784fa6f6a2d3457619c1596130e242ca52 Mon Sep 17 00:00:00 2001 From: dj3c1t Date: Sun, 15 Jun 2014 20:26:14 +0200 Subject: [PATCH] syntaxe POO (visibilite) --- app/observers/mw_observer_highlightjs.php | 4 +--- mw_highlightjs.php | 6 ++---- 2 files changed, 3 insertions(+), 7 deletions(-) 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 -- 2.1.4