update
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* Creative Elements - live Theme & Page Builder
|
||||
*
|
||||
* @author WebshopWorks
|
||||
* @copyright 2019-2022 WebshopWorks.com
|
||||
* @license One domain support license
|
||||
*/
|
||||
|
||||
use PrestaShop\PrestaShop\Core\ConfigurationInterface;
|
||||
|
||||
defined('_PS_VERSION_') or exit;
|
||||
|
||||
class CEJavascriptManager extends JavascriptManager
|
||||
{
|
||||
public function __construct(array $directories, ConfigurationInterface $configuration, $list = null)
|
||||
{
|
||||
parent::__construct($directories, $configuration);
|
||||
|
||||
is_null($list) or $this->list = $list;
|
||||
}
|
||||
|
||||
public function getFullPath($relativePath)
|
||||
{
|
||||
if (strrpos($relativePath, '?') !== false) {
|
||||
$path = explode('?', $relativePath, 2);
|
||||
$fullPath = parent::getFullPath($path[0]);
|
||||
|
||||
return $fullPath ? "$fullPath?$path[1]" : false;
|
||||
}
|
||||
return parent::getFullPath($relativePath);
|
||||
}
|
||||
|
||||
public function getList()
|
||||
{
|
||||
return parent::getDefaultList();
|
||||
}
|
||||
|
||||
public function listAll()
|
||||
{
|
||||
return parent::getList();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user