From 45a8099bf3677cbbe2c248038e0747eb95166ea2 Mon Sep 17 00:00:00 2001 From: Simon DELAGE Date: Wed, 3 Sep 2014 03:52:47 +0200 Subject: [PATCH] Choosed to move outdated functions to helper As comments for now --- action.php | 14 -------------- helper.php | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/action.php b/action.php index 787c40a..fdf4744 100644 --- a/action.php +++ b/action.php @@ -156,18 +156,4 @@ class action_plugin_userhomepage extends DokuWiki_Action_Plugin{ $content = str_replace('@USER@',$user,$content); return $content; } - //draws a home button, used by calls from main.php in template folder - function homeButton() { - $this->init(); - if ($_SERVER['REMOTE_USER']!=null) { - echo '
'; - } - } - //draws a home link, used by calls from main.php in template folder - function homeLink() { - $this->init(); - if ($_SERVER['REMOTE_USER']!=null) { - echo 'Home'; - } - } } diff --git a/helper.php b/helper.php index b8512ee..c46672d 100644 --- a/helper.php +++ b/helper.php @@ -49,4 +49,19 @@ class helper_plugin_userhomepage extends DokuWiki_Plugin { } } +// //draws a home button, used by calls from main.php in template folder +// function homeButton() { +// $this->init(); +// if ($_SERVER['REMOTE_USER']!=null) { +// echo '
'; +// } +// } +// //draws a home link, used by calls from main.php in template folder +// function homeLink() { +// $this->init(); +// if ($_SERVER['REMOTE_USER']!=null) { +// echo 'Home'; +// } +// } + }