Exemple #1
0
 public static function getContent($call, $type, $method = null)
 {
     $html = '';
     $_call = $call;
     $call = jbetoloFileHelper::normalizeCall($call, true, true, true, $type);
     try {
         if ($call) {
             $html = file_get_contents($call);
         } else {
             $call = jbetoloFileHelper::normalizeCall($_call, true, false, true, $type);
             if ($call) {
                 $html = jbetoloFileHelper::makeHTTPRequest($call, $type);
             }
         }
     } catch (Exception $e) {
         JError::raiseWarning(500, $e);
         return '';
     }
     return $html;
 }