<?php

/**
 * @version	 $Id: mod_joomleague_ranking.php 4905 2010-01-30 08:51:33Z and_one $
 * @package	 Joomla
 * @subpackage  Joomleague ranking module
 * @copyright   Copyright (C) 2008 Open Source Matters. All rights reserved.
 * @license	 GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant to the
 * GNU General Public License, and as distributed it includes or is derivative
 * of works licensed under the GNU General Public License or other free or open
 * source software licenses. See COPYRIGHT.php for copyright notices and
 * details.
 */
//no direct access
defined('_JEXEC') or die('Restricted access');
//get helper
require_once dirname(__FILE__) . DS . 'helper.php';
require_once JPATH_SITE . DS . 'components' . DS . 'com_joomleague' . DS . 'joomleague.core.php';
$show_debug_info = JComponentHelper::getParams('com_joomleague')->get('show_debug_info', 0);
$list = modJLGRankingHelper::getData($params);
if ($show_debug_info) {
    echo 'this->mod_joomleague_ranking params<br /><pre>~' . print_r($params, true) . '~</pre><br />';
}
$document = JFactory::getDocument();
//add css file
$document->addStyleSheet(JURI::base() . 'modules/mod_joomleague_ranking/css/mod_joomleague_ranking.css');
require JModuleHelper::getLayoutPath('mod_joomleague_ranking');