]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
moved library include to view
authorcash <cash.costello@gmail.com>
Sun, 18 Jan 2009 20:07:07 +0000 (20:07 +0000)
committercash <cash.costello@gmail.com>
Sun, 18 Jan 2009 20:07:07 +0000 (20:07 +0000)
start.php
views/default/widgets/feed_reader/view.php

index 03c0c00d25dfcb8ad060254e655fa40dd0c179b0..44f259ace104668897da263d128b3cc4cd97c4a9 100644 (file)
--- a/start.php
+++ b/start.php
@@ -7,14 +7,7 @@
    **/\r
   \r
   function simplepie_init() \r
-  {\r
-    global $CONFIG;\r
-    \r
-    if (!class_exists('SimplePie'))\r
-    {\r
-      require_once $CONFIG->pluginspath . '/simplepie/simplepie.inc';\r
-    }\r
-    \r
+  {    \r
     add_widget_type('feed_reader', 'Feed Reader Widget', 'single feed');\r
   }\r
   \r
index 6635ecf88baa1d18fdff2835963d5bb5a2d85819..b640890d2b08d56c55256217d766de4d5e1beb0a 100644 (file)
@@ -1,4 +1,10 @@
 <?php
+  global $CONFIG;
+    
+  if (!class_exists('SimplePie'))
+  {
+    require_once $CONFIG->pluginspath . '/simplepie/simplepie.inc';
+  }
    
   $feed_url = $vars['entity']->feed_url;
   if($feed_url){