chore(legacy): use Config::getPublicUrl helper
Replace Application_Common_HTTPHelper::getStationUrl with Config::getPublicUrl.
This commit is contained in:
parent
72960593c7
commit
829b9bcd5b
17 changed files with 23 additions and 51 deletions
|
@ -161,14 +161,11 @@ class WidgetHelper
|
|||
*/
|
||||
public static function findAndConvertPaths(&$arr)
|
||||
{
|
||||
$CC_CONFIG = Config::getConfig();
|
||||
$baseDir = Application_Common_OsPath::formatDirectoryWithDirectorySeparators($CC_CONFIG['baseDir']);
|
||||
|
||||
foreach ($arr as &$a) {
|
||||
if (is_array($a)) {
|
||||
if (array_key_exists('image_path', $a)) {
|
||||
$a['image_path'] = $a['image_path'] && $a['image_path'] !== '' ?
|
||||
Application_Common_HTTPHelper::getStationUrl() . 'api/show-logo?id=' . $a['id'] : '';
|
||||
Config::getPublicUrl() . 'api/show-logo?id=' . $a['id'] : '';
|
||||
} else {
|
||||
self::findAndConvertPaths($a);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue