Exemple #1
0
 /**
  * Determines if file contents can be fetched using http protocol if required
  * 
  * @param string $sPath    Url of file
  * @return boolean        
  */
 public function isHttpAdapterAvailable($sUrl)
 {
     if ($this->params->get('pro_phpAndExternal', '1')) {
         return (preg_match('#^(?:http|//)#i', $sUrl) && !JchOptimizeHelper::isInternal($sUrl) || preg_match('#\\.php|^(?!.*?\\.(?:js|css)).++#i', $sUrl)) && !$this->oFileRetriever->isHttpAdapterAvailable();
     } else {
         return parent::isHttpAdapterAvailable($sUrl);
     }
 }