Example #1
0
 /**
  * Images Storage root directory
  *
  * @return string
  */
 public function getStorageRoot()
 {
     if ($this->_getMediaSymlinkHelper()->active()) {
         return realpath(Mage::getConfig()->getOptions()->getMediaDir()) . DS . Mage_Cms_Model_Wysiwyg_Config::IMAGE_DIRECTORY . DS;
     } else {
         return parent::getStorageRoot();
     }
 }
Example #2
0
 /**
  * Images Storage root directory
  *
  * @return string
  */
 public function getStorageRoot()
 {
     if (!Mage::helper('uaudio_storage')->isEnabled()) {
         return parent::getStorageRoot();
     }
     if (!$this->_storageRoot) {
         $this->_storageRoot = Mage::getConfig()->getOptions()->getMediaDir() . DS . Mage_Cms_Model_Wysiwyg_Config::IMAGE_DIRECTORY . DS;
     }
     return $this->_storageRoot;
 }
Example #3
0
 /**
  * Images Storage root directory
  *
  * @return string
  */
 public function getStorageRoot()
 {
     return realpath(parent::getStorageRoot());
 }