CC-2044: remove hardcoded settings from application/configs/conf.php

-refactored some code to begin work on this...
This commit is contained in:
martin 2011-03-29 16:10:00 -04:00
parent 54f378049d
commit 161505a6df
6 changed files with 40 additions and 32 deletions

View file

@ -1481,10 +1481,7 @@ class StoredFile {
public function getFileUrl()
{
global $CC_CONFIG;
return "http://$CC_CONFIG[storageUrlHost]"
.":$CC_CONFIG[storageUrlPort]"
.$CC_CONFIG["apiPath"]."get-media/file/"
.$this->gunid.".".$this->getFileExtension();
return $this->gunid.".".$this->getFileExtension();
}
/**