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