Esempio n. 1
0
 /**
  * Decode HTML element id
  *
  * @param string $id
  * @return string
  */
 public function convertIdToPath($id)
 {
     $currentPath = $this->getStorageRoot();
     $path = realpath(parent::convertIdToPath($id));
     if (is_dir($path) && false !== stripos($path, $currentPath)) {
         $currentPath = $path;
     }
     return $currentPath;
 }
Esempio n. 2
0
 /**
  * Decode HTML element id
  *
  * @param string $id
  * @return string
  */
 public function convertIdToPath($id)
 {
     if (!Mage::helper('uaudio_storage')->isEnabled()) {
         return parent::convertIdToPath($id);
     }
     $path = $this->idDecode($id);
     $storageRoot = $this->getStorageRoot();
     if (!strstr($path, $storageRoot)) {
         $path = $storageRoot . $path;
     }
     return $path;
 }