public static function load($url) { try { $l = new self(); $out = $l->getFileContents(substr($url, 8)); Kwf_Media_Output::output($out); } catch (Kwf_Assets_NotFoundException $e) { throw new Kwf_Exception_NotFound(); } }
public static function load($url) { if (strpos($url, '?') !== false) { $url = substr($url, 0, strpos($url, '?')); } Kwf_Assets_Dispatcher::dispatch($url); try { $l = new self(); $out = $l->getFileContents(substr($url, 8)); Kwf_Media_Output::output($out); } catch (Kwf_Assets_NotFoundException $e) { throw new Kwf_Exception_NotFound(); } }