chore(legacy): use Config::getBasePath helper
Replace Application_Common_OsPath::getBaseDir with Config::getBasePath.
This commit is contained in:
parent
712ecd70b4
commit
72960593c7
34 changed files with 288 additions and 297 deletions
|
@ -73,22 +73,6 @@ class Application_Common_OsPath
|
|||
return implode(DIRECTORY_SEPARATOR, $paths);
|
||||
}
|
||||
|
||||
public static function getBaseDir()
|
||||
{
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
$baseUrl = $CC_CONFIG['baseDir'];
|
||||
|
||||
if ($baseUrl[0] != '/') {
|
||||
$baseUrl = '/' . $baseUrl;
|
||||
}
|
||||
|
||||
if ($baseUrl[strlen($baseUrl) - 1] != '/') {
|
||||
$baseUrl = $baseUrl . '/';
|
||||
}
|
||||
|
||||
return $baseUrl;
|
||||
}
|
||||
|
||||
public static function formatDirectoryWithDirectorySeparators($dir)
|
||||
{
|
||||
if ($dir[0] != '/') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue