Merge pull request #978 from StanProg/bootstrap
// FO : Removed unused local variable, tabs added, phpdoc tags
This commit is contained in:
@@ -252,6 +252,7 @@ class ReferrerCore extends ObjectModel
|
||||
*
|
||||
* @param array $referrers
|
||||
* @param int $employee
|
||||
* @return true
|
||||
*/
|
||||
public static function refreshCache($referrers = null, $employee = null)
|
||||
{
|
||||
@@ -265,7 +266,6 @@ class ReferrerCore extends ObjectModel
|
||||
if (!$referrer->isAssociatedToShop($shop_id))
|
||||
continue;
|
||||
|
||||
$shop = new Shop($shop_id);
|
||||
$stats_visits = $referrer->getStatsVisits(null, $employee);
|
||||
$registrations = $referrer->getRegistrations(null, $employee);
|
||||
$stats_sales = $referrer->getStatsSales(null, $employee);
|
||||
|
||||
@@ -313,12 +313,12 @@ abstract class ControllerCore
|
||||
/**
|
||||
* Add a new javascript file in page header.
|
||||
*
|
||||
* @param mixed $js_uri
|
||||
* @param mixed $name
|
||||
* @param mixed $folder
|
||||
* @return void
|
||||
*/
|
||||
public function addJqueryPlugin($name, $folder = null)
|
||||
{
|
||||
$plugin_path = array();
|
||||
if (is_array($name))
|
||||
{
|
||||
foreach ($name as $plugin)
|
||||
@@ -334,10 +334,10 @@ abstract class ControllerCore
|
||||
{
|
||||
$plugin_path = Media::getJqueryPluginPath($name, $folder);
|
||||
|
||||
if(!empty($plugin_path['css']))
|
||||
$this->addCSS($plugin_path['css']);
|
||||
if(!empty($plugin_path['js']))
|
||||
$this->addJS($plugin_path['js']);
|
||||
if(!empty($plugin_path['css']))
|
||||
$this->addCSS($plugin_path['css']);
|
||||
if(!empty($plugin_path['js']))
|
||||
$this->addJS($plugin_path['js']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user