summaryrefslogtreecommitdiff
path: root/lib/exe/detail.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-06-16 11:51:28 -0700
committerAndreas Gohr <andi@splitbrain.org>2013-06-16 11:51:28 -0700
commit3f314099e3286ad91de618473f073ee01947ebda (patch)
tree111336c9354e8d956bdf294b1740c2eb182b8087 /lib/exe/detail.php
parent3394e804f34fc2636c519d9ec6e10e342adf520d (diff)
parent3074e3428bd5d1e38078dbac80a1eb9b96f917d7 (diff)
downloadrpg-3f314099e3286ad91de618473f073ee01947ebda.tar.gz
rpg-3f314099e3286ad91de618473f073ee01947ebda.tar.bz2
Merge pull request #180 from splitbrain/FS#2415
FS#2415, add $INFO to mediamanager
Diffstat (limited to 'lib/exe/detail.php')
-rw-r--r--lib/exe/detail.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/exe/detail.php b/lib/exe/detail.php
index db635c016..7008b126f 100644
--- a/lib/exe/detail.php
+++ b/lib/exe/detail.php
@@ -2,13 +2,18 @@
if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
define('DOKU_MEDIADETAIL',1);
require_once(DOKU_INC.'inc/init.php');
-trigger_event('DETAIL_STARTED', $tmp=array());
-//close session
-session_write_close();
$IMG = getID('media');
$ID = cleanID($INPUT->str('id'));
+// this makes some general infos available as well as the info about the
+// "parent" page
+$INFO = array_merge(pageinfo(),mediainfo());
+trigger_event('DETAIL_STARTED', $tmp=array());
+
+//close session
+session_write_close();
+
if($conf['allowdebug'] && $INPUT->has('debug')){
print '<pre>';
foreach(explode(' ','basedir userewrite baseurl useslash') as $x){
@@ -39,10 +44,6 @@ if($AUTH >= AUTH_READ){
$ERROR = p_locale_xhtml('denied');
}
-// this makes some general infos available as well as the info about the
-// "parent" page
-$INFO = pageinfo();
-
//start output and load template
header('Content-Type: text/html; charset=utf-8');
include(template('detail.php'));