diff options
author | Bart Visscher <bart@thisnet.nl> | 2011-09-18 19:37:54 +0200 |
---|---|---|
committer | Bart Visscher <bart@thisnet.nl> | 2011-09-18 19:37:54 +0200 |
commit | 82c7598861db175617694891bb9f21b426426225 (patch) | |
tree | fce8fb4717b4cc2a5dc6da8835bdb51b5fb40054 /apps/media | |
parent | d5656716f69caa6a1eb98706994ffcb9a08553a7 (diff) | |
download | nextcloud-server-82c7598861db175617694891bb9f21b426426225.tar.gz nextcloud-server-82c7598861db175617694891bb9f21b426426225.zip |
Remove global vars and use the OC static version.
Removed global vars are DOCUMENTROOT, SERVERROOT, SUBURI, WEBROOT and CONFIG_DATADIRECTORY
Diffstat (limited to 'apps/media')
-rw-r--r-- | apps/media/ajax/api.php | 3 | ||||
-rw-r--r-- | apps/media/lib_ampache.php | 3 | ||||
-rw-r--r-- | apps/media/server/xml.server.php | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php index 3b4932728da..31ff33bf03a 100644 --- a/apps/media/ajax/api.php +++ b/apps/media/ajax/api.php @@ -41,7 +41,6 @@ if(!isset($_POST['action']) and isset($_GET['action'])){ foreach($arguments as &$argument){ $argument=stripslashes($argument); } -global $CONFIG_DATADIRECTORY; @ob_clean(); if(!isset($arguments['artist'])){ $arguments['artist']=0; @@ -155,4 +154,4 @@ function findMusic($path='/'){ return $music; } -?>
\ No newline at end of file +?> diff --git a/apps/media/lib_ampache.php b/apps/media/lib_ampache.php index b3bd7b16189..dc88e35a697 100644 --- a/apps/media/lib_ampache.php +++ b/apps/media/lib_ampache.php @@ -157,7 +157,6 @@ class OC_MEDIA_AMPACHE{ } private static function printSong($song,$artistName=false,$albumName=false){ - global $WEBROOT; if(!$artistName){ $artistName=OC_MEDIA_COLLECTION::getArtistName($song['song_artist']); } @@ -363,4 +362,4 @@ class OC_MEDIA_AMPACHE{ } } -?>
\ No newline at end of file +?> diff --git a/apps/media/server/xml.server.php b/apps/media/server/xml.server.php index 516ab740072..e61fadf234c 100644 --- a/apps/media/server/xml.server.php +++ b/apps/media/server/xml.server.php @@ -35,7 +35,6 @@ foreach($arguments as &$argument){ $argument=stripslashes($argument); } ob_clean(); -global $CONFIG_DATADIRECTORY; if(isset($arguments['action'])){ error_log($arguments['action']); switch($arguments['action']){ |