CC-2184: Hardcoded CSS path should be relative path instead

This commit is contained in:
denise 2012-10-19 11:09:34 -04:00
parent 7165d1fa2e
commit d32495d100
47 changed files with 366 additions and 340 deletions

View file

@ -4,6 +4,7 @@ class Application_Form_EditAudioMD extends Zend_Form
{
public function init()
{
global $CC_CONFIG;
// Set the method for the display form to POST
$this->setMethod('post');
@ -137,7 +138,7 @@ class Application_Form_EditAudioMD extends Zend_Form
'ignore' => true,
'class' => 'btn md-cancel',
'label' => 'Cancel',
'onclick' => 'javascript:document.location.href = "/Library"',
'onclick' => 'javascript:document.location.href="'.$CC_CONFIG['base_dir'].'/Library"',
'decorators' => array(
'ViewHelper'
)

View file

@ -6,7 +6,9 @@ class Application_Form_Preferences extends Zend_Form
public function init()
{
$this->setAction('/Preference');
global $CC_CONFIG;
$this->setAction($CC_CONFIG['base_dir'] . '/Preference');
$this->setMethod('post');
$isSaas = Application_Model_Preference::GetPlanLevel() == 'disabled'?false:true;