// push changes
This commit is contained in:
@@ -37,6 +37,8 @@ class Dashactivity extends Module
|
||||
$this->version = '0.1';
|
||||
$this->author = 'PrestaShop';
|
||||
$this->push_filename = _PS_CACHE_DIR_.'push/activity';
|
||||
$this->allow_push = true;
|
||||
$this->push_time_limit = 180;
|
||||
|
||||
parent::__construct();
|
||||
}
|
||||
@@ -64,9 +66,6 @@ class Dashactivity extends Module
|
||||
|
||||
public function hookDashboardData($params)
|
||||
{
|
||||
if ($params['dashboard_use_push'])
|
||||
Tools::waitUntilFileIsModified($this->push_filename, 30);
|
||||
|
||||
$gapi = Module::isInstalled('gapi') ? Module::getInstanceByName('gapi') : false;
|
||||
if (Validate::isLoadedObject($gapi) && $gapi->isConfigured())
|
||||
{
|
||||
|
||||
@@ -22,8 +22,7 @@
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<section id="dashactivity" class="panel widget">
|
||||
<section id="dashactivity" class="panel widget{if $allow_push} allow_push{/if}">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-time"></i> {l s='Recent Activity'}
|
||||
<span class="panel-heading-action">
|
||||
|
||||
Reference in New Issue
Block a user