/** * Encode path to HTML element id * * @param string $path Path to file/directory * @return string */ public function convertPathToId($path) { if (!Mage::helper('uaudio_storage')->isEnabled()) { return parent::convertPathToId($path); } $path = str_replace($this->getStorageRoot(), '', $path); return $this->idEncode($path); }