1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-29 04:55:02 +03:00

Неиспользуемые локальные переменные в методе ModuleViewer::Compress

This commit is contained in:
Михаил Красильников 2012-10-05 11:15:02 +04:00
parent 8a7a48ad4b
commit 7cf5b501fe

View file

@ -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);