Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Remove functionality not used in application_top
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Oct 27, 2020
1 parent 68e474a commit 0177cf6
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions includes/classes/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,24 +106,5 @@ public function set_customer_if_identified() {
$GLOBALS['customer'] = new customer($_SESSION['customer_id']);
}
}

public static function load_xml($url) {
if (!empty($url)) {
if (ini_get('allow_url_fopen')) {
$feed = simplexml_load_file($url);
}
else {
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, false);
$xml = curl_exec($ch);

$feed = simplexml_load_string($xml);
}

return $feed;
}
}

}

0 comments on commit 0177cf6

Please sign in to comment.