public static function getLanguage() { if (!self::$language) { self::$language = ARKLanguage::getInstance('en-GB'); $lang = Jfactory::getLanguage(); self::$language->merge($lang); } return self::$language; }
// Title PrayerCenter Latest Prayer Module for Joomla 1.5 // Author Mike Leeper // Version 1.5.0 // License This is free software and you may redistribute it under the GPL. // PrayerCenter Latest Prayer comes with absolutely no warranty. For details, // see the license at http://www.gnu.org/licenses/gpl.txt // YOU ARE NOT REQUIRED TO KEEP COPYRIGHT NOTICES IN // THE HTML OUTPUT OF THIS SCRIPT. YOU ARE NOT ALLOWED // TO REMOVE COPYRIGHT NOTICES FROM THE SOURCE CODE. // // ****************************************************************************************** defined('_JEXEC') or die('Restricted access'); // no direct access global $mainframe; $livesite = JURI::base(); $lang =& Jfactory::getLanguage(); $lang->load('com_prayercenter', JPATH_SITE); $count = $params->get('count'); $rssurl = $params->get('rss url'); // $livesite.'/index.php?option=com_prayercenter&task=rss'; $options = array(); $options['rssUrl'] = $rssurl; if ($params->get('cache')) { $options['cache_time'] = $params->get('cache_time', 15); $options['cache_time'] *= 60; } else { $options['cache_time'] = null; } $modRssDoc =& JFactory::getXMLparser('RSS', $options); $feed = new stdclass(); if ($modRssDoc != false) {