1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 11:40:48 +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 string $sType Тип файло - js, css
* @param string $sType Тип файла - js, css
* @return array
*/
protected function Compress($aFiles,$sType) {
$sCacheDir = $this->sCacheDir."/".Config::Get('view.skin');
$sCacheName = $sCacheDir."/".md5(serialize($aFiles).'_head').".{$sType}";
$sPathServer = Config::Get('path.root.server');
$sPathWeb = Config::Get('path.root.web');
/**
* Если кеш существует, то берем из кеша
@ -1054,7 +1053,7 @@ class ModuleViewer extends Module {
ob_start();
foreach ($aFiles as $sFile) {
// если файл локальный
if (strpos($sFile,Config::Get('path.root.web'))!==false) {
if (strpos($sFile, $sPathWeb)!==false) {
$sFile=$this->GetServerPath($sFile);
}
list($sFile,)=explode('?',$sFile,2);