mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
Неиспользуемые локальные переменные в методе ModuleViewer::Compress
This commit is contained in:
parent
8a7a48ad4b
commit
7cf5b501fe
|
@ -1029,13 +1029,12 @@ class ModuleViewer extends Module {
|
||||||
* использует файловое кеширование
|
* использует файловое кеширование
|
||||||
*
|
*
|
||||||
* @param array $aFiles Список файлов
|
* @param array $aFiles Список файлов
|
||||||
* @param string $sType Тип файло - js, css
|
* @param string $sType Тип файла - js, css
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function Compress($aFiles,$sType) {
|
protected function Compress($aFiles,$sType) {
|
||||||
$sCacheDir = $this->sCacheDir."/".Config::Get('view.skin');
|
$sCacheDir = $this->sCacheDir."/".Config::Get('view.skin');
|
||||||
$sCacheName = $sCacheDir."/".md5(serialize($aFiles).'_head').".{$sType}";
|
$sCacheName = $sCacheDir."/".md5(serialize($aFiles).'_head').".{$sType}";
|
||||||
$sPathServer = Config::Get('path.root.server');
|
|
||||||
$sPathWeb = Config::Get('path.root.web');
|
$sPathWeb = Config::Get('path.root.web');
|
||||||
/**
|
/**
|
||||||
* Если кеш существует, то берем из кеша
|
* Если кеш существует, то берем из кеша
|
||||||
|
@ -1054,7 +1053,7 @@ class ModuleViewer extends Module {
|
||||||
ob_start();
|
ob_start();
|
||||||
foreach ($aFiles as $sFile) {
|
foreach ($aFiles as $sFile) {
|
||||||
// если файл локальный
|
// если файл локальный
|
||||||
if (strpos($sFile,Config::Get('path.root.web'))!==false) {
|
if (strpos($sFile, $sPathWeb)!==false) {
|
||||||
$sFile=$this->GetServerPath($sFile);
|
$sFile=$this->GetServerPath($sFile);
|
||||||
}
|
}
|
||||||
list($sFile,)=explode('?',$sFile,2);
|
list($sFile,)=explode('?',$sFile,2);
|
||||||
|
|
Loading…
Reference in a new issue