Commit 1a4e1c3185bc3cc93f778052d9896af897ef29a5

Authored by Kevin Fourie
1 parent 90eda746

KEP-114

"RSS Dashlet fails to initialize on PHP5 (and Mac OS 10.4.8)"
Fixed. Seems PHP5 needs the full tags.

Committed By: Kevin Fourie
Reviewed By: Jalaloedien Abrahams

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7079 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/rssplugin/rss2array.inc.php
1 -<? 1 +<?php
2 2
3 /* 3 /*
4 * The contents of this file are subject to the KnowledgeTree Public 4 * The contents of this file are subject to the KnowledgeTree Public
5 * License Version 1.1.2 ("License"); You may not use this file except in 5 * License Version 1.1.2 ("License"); You may not use this file except in
6 * compliance with the License. You may obtain a copy of the License at 6 * compliance with the License. You may obtain a copy of the License at
7 * http://www.knowledgetree.com/KPL 7 * http://www.knowledgetree.com/KPL
8 - * 8 + *
9 * Software distributed under the License is distributed on an "AS IS" 9 * Software distributed under the License is distributed on an "AS IS"
10 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. 10 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
11 * See the License for the specific language governing rights and 11 * See the License for the specific language governing rights and
@@ -16,9 +16,9 @@ @@ -16,9 +16,9 @@
16 * (ii) the KnowledgeTree copyright notice 16 * (ii) the KnowledgeTree copyright notice
17 * in the same form as they appear in the distribution. See the License for 17 * in the same form as they appear in the distribution. See the License for
18 * requirements. 18 * requirements.
19 - * 19 + *
20 * The Original Code is: KnowledgeTree Open Source 20 * The Original Code is: KnowledgeTree Open Source
21 - * 21 + *
22 * The Initial Developer of the Original Code is The Jam Warehouse Software 22 * The Initial Developer of the Original Code is The Jam Warehouse Software
23 * (Pty) Ltd, trading as KnowledgeTree. 23 * (Pty) Ltd, trading as KnowledgeTree.
24 * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright 24 * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 * Contributor( s): ______________________________________ 27 * Contributor( s): ______________________________________
28 * 28 *
29 */ 29 */
30 - 30 +
31 31
32 # 32 #
33 # global vars 33 # global vars
@@ -54,10 +54,10 @@ @@ -54,10 +54,10 @@
54 # 54 #
55 55
56 if(preg_match("/^http:\/\/([^\/]+)(.*)$/", $url, $matches)){ 56 if(preg_match("/^http:\/\/([^\/]+)(.*)$/", $url, $matches)){
57 - 57 +
58 $host = $matches[1]; 58 $host = $matches[1];
59 $uri = $matches[2]; 59 $uri = $matches[2];
60 - $hostSplit = explode(':', $host); 60 + $hostSplit = explode(':', $host);
61 if(isset($hostSplit[1])){ 61 if(isset($hostSplit[1])){
62 $port = $hostSplit[1]; 62 $port = $hostSplit[1];
63 $host = $hostSplit[0]; 63 $host = $hostSplit[0];
@@ -197,7 +197,7 @@ @@ -197,7 +197,7 @@
197 return $rss2array_globals; 197 return $rss2array_globals;
198 198
199 } 199 }
200 - 200 +
201 function rss2arrayBlock($xml){ 201 function rss2arrayBlock($xml){
202 202
203 global $rss2array_globals; 203 global $rss2array_globals;
@@ -207,7 +207,7 @@ @@ -207,7 +207,7 @@
207 # 207 #
208 208
209 $rss2array_globals = array(); 209 $rss2array_globals = array();
210 - 210 +
211 211
212 # 212 #
213 # create the parser 213 # create the parser