Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * other free or open source software licenses.
- * See COPYRIGHT.php for copyright notices and details.
- */
- // no direct access
- defined('_JEXEC') or die('Restricted access');
- require_once (JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php');
- class modLatestNewsHelper
- {
- function getList(&$params, $limit)
- {
- global $mainframe;
- $db =& JFactory::getDBO();
- $user =& JFactory::getUser();
- $userId = (int) $user->get('id');
- if($limit){
- $count = $limit
- }else{
- $count = (int) $params->get('count', 5);
- }
- $catid = trim( $params->get('catid') );
- $secid = trim( $params->get('secid') );
- $show_front = $params->get('show_front', 1);
- $aid = $user->get('aid', 0);
Add Comment
Please, Sign In to add comment