diff --git a/detail.php b/detail.php index 9126ac0..a34d9e4 100644 --- a/detail.php +++ b/detail.php @@ -8,6 +8,7 @@ // must be run from within DokuWiki if (!defined('DOKU_INC')) die(); +@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ ?> @@ -20,7 +21,9 @@ if (!defined('DOKU_INC')) die(); [] - + + + @@ -77,7 +80,7 @@ if (!defined('DOKU_INC')) die(); = AUTH_UPLOAD) { + if (($authNS >= AUTH_UPLOAD) && function_exists('media_managerURL')) { $mmURL = media_managerURL(array('ns' => $imgNS, 'image' => $IMG)); echo ''.$lang['img_manager'].'
'; } diff --git a/main.php b/main.php index b22cccc..3b51069 100644 --- a/main.php +++ b/main.php @@ -19,7 +19,7 @@ $showTools = !tpl_getConf('hideTools') || ( tpl_getConf('hideTools') && $_SERVER <?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>] - 2011-07-31 can use the core function tpl_favicon() */ ?> + diff --git a/mediamanager.php b/mediamanager.php index 0f43625..741c08f 100644 --- a/mediamanager.php +++ b/mediamanager.php @@ -4,6 +4,10 @@ * * @author Andreas Gohr */ +// must be run from within DokuWiki +if (!defined('DOKU_INC')) die(); +@require_once(dirname(__FILE__).'/tpl_functions.php'); /* include hook for template functions */ + ?> ] - + + +