CC-2044: remove hardcoded settings from application/configs/conf.php
-refactored some code to begin work on this...
This commit is contained in:
parent
54f378049d
commit
161505a6df
6 changed files with 40 additions and 32 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue