chore(legacy): use Config::getBasePath helper

Replace Application_Common_OsPath::getBaseDir with Config::getBasePath.
This commit is contained in:
jo 2022-07-07 23:27:28 +02:00 committed by Kyle Robbertze
parent 712ecd70b4
commit 72960593c7
34 changed files with 288 additions and 297 deletions

View file

@ -11,7 +11,7 @@ class EmbeddableWidgetsController extends Zend_Controller_Action
Zend_Layout::getMvcInstance()->assign('parent_page', 'Widgets');
$CC_CONFIG = Config::getConfig();
$baseUrl = Application_Common_OsPath::getBaseDir();
$baseUrl = Config::getBasePath();
$this->view->headLink()->appendStylesheet($baseUrl . 'css/player-form.css?' . $CC_CONFIG['airtime_version']);
$this->view->headScript()->appendFile($baseUrl . 'js/airtime/player/player.js?' . $CC_CONFIG['airtime_version']);
@ -54,7 +54,7 @@ class EmbeddableWidgetsController extends Zend_Controller_Action
}
$CC_CONFIG = Config::getConfig();
$baseUrl = Application_Common_OsPath::getBaseDir();
$baseUrl = Config::getBasePath();
$facebookAppId = $CC_CONFIG['facebook-app-id'];
$this->view->headScript()->appendScript('var FACEBOOK_APP_ID = ' . json_encode($facebookAppId) . ';');