diff --git a/opml.php b/opml.php
index 46a4de8..42fbbb9 100644
--- a/opml.php
+++ b/opml.php
@@ -16,24 +16,23 @@ class OPML {
var $_links = array();
function OPML($file) {
- $this->file = $file;
+ $this->file = $file;
}
function parseOPMLtoArray() {
$parser = xml_parser_create();
- $data = implode('', file($this->file));
- xml_parse_into_struct($parser,$data,$d_ar,$i_ar);
+ $data = implode('', file($this->file));
+
+ xml_parse_into_struct($parser, $data, $d_ar, $i_ar);
- foreach($d_ar as $element) {
- if($element['tag'] == 'OUTLINE') {
+ foreach ($d_ar AS $element)
+ if ($element['tag']=='OUTLINE')
$feeds[] = $element['attributes'];
- }
- }
+
$this->feeds = $feeds;
}
function load() {
- echo "file) . "\">Download OPML File";
+ echo 'Download OPML File';
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file