summaryrefslogtreecommitdiff
path: root/inc/media.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-09-28 16:38:14 +0200
committerAdrian Lang <lang@cosmocode.de>2010-09-28 16:42:43 +0200
commitde3eb1d7f990c4cc17722ce3bdff7b9568ab8b9c (patch)
tree743400a9afec72602b4ec99a21ff42ed7a402287 /inc/media.php
parent07d7dfcf87238d920900ca468d9399d80d8b7247 (diff)
downloadrpg-de3eb1d7f990c4cc17722ce3bdff7b9568ab8b9c.tar.gz
rpg-de3eb1d7f990c4cc17722ce3bdff7b9568ab8b9c.tar.bz2
Small fixes / cleanup
Diffstat (limited to 'inc/media.php')
-rw-r--r--inc/media.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/media.php b/inc/media.php
index 668f42d6a..3dacd12b7 100644
--- a/inc/media.php
+++ b/inc/media.php
@@ -391,6 +391,7 @@ function media_contentcheck($file,$mime){
function media_notify($id,$file,$mime){
global $lang;
global $conf;
+ global $INFO;
if(empty($conf['notify'])) return; //notify enabled?
$ip = clientIP();
@@ -729,6 +730,7 @@ function media_nstree($ns){
// currently selected namespace
$ns = cleanID($ns);
if(empty($ns)){
+ global $ID;
$ns = dirname(str_replace(':','/',$ID));
if($ns == '.') $ns ='';
}