[Fusionforge-commits] r10141 - trunk/src/common/widget

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Mon Jun 28 19:04:45 CEST 2010


Author: aljeux
Date: 2010-06-28 19:04:45 +0200 (Mon, 28 Jun 2010)
New Revision: 10141

Modified:
   trunk/src/common/widget/Widget_Rss.class.php
Log:
Small rework for clarity when calling simplepie

Modified: trunk/src/common/widget/Widget_Rss.class.php
===================================================================
--- trunk/src/common/widget/Widget_Rss.class.php	2010-06-28 17:04:40 UTC (rev 10140)
+++ trunk/src/common/widget/Widget_Rss.class.php	2010-06-28 17:04:45 UTC (rev 10141)
@@ -41,11 +41,11 @@
 		$content = '';
 		if ($this->rss_url) {
 			if (function_exists('idn_to_utf8()')) {
-				require_once('simplepie/simplepie.inc');
+				function idn_to_utf8($param) {
+					return idn_to_unicode($param);
+				}
 			}
-			else {
-				require_once('common/rss/simplepie.inc');
-			}
+			require_once('common/rss/simplepie.inc');
 			if (!is_dir(forg_get_config('sys_var_path') .'/rss')) {
 				mkdir(forg_get_config('sys_var_path') .'/rss');
 			}




More information about the Fusionforge-commits mailing list