Commit 4ed713ad authored by Sven Rhinow's avatar Sven Rhinow

version_compair angepasst

parent 86936449
......@@ -164,7 +164,7 @@ class ModuleSRLayer extends \Module
{
$cssObjFile = \FilesModel::findByPk($this->srl_css_file);
if(version_compare(VERSION.BUILD, '3.2.0','>='))
if(version_compare(VERSION, '3.2','>='))
{
if ($cssObjFile === null)
{
......@@ -172,18 +172,18 @@ class ModuleSRLayer extends \Module
{
$this->log($GLOBALS['TL_LANG']['ERR']['version2format'],'ModuleSRLayer.php srl_css_file','TL_ERROR');
}
}
}
$cssPath = $cssObjFile->path;
}
elseif(version_compare(VERSION.BUILD, '3.2.0','<'))
elseif(version_compare(VERSION, '3.2','<'))
{
if (!is_numeric($this->srl_css_file))
{
$this->log($GLOBALS['TL_LANG']['ERR']['version2format'],'ModuleSRLayer.php srl_css_file','TL_ERROR');
}
$cssPath = $cssObjFile->path;
}
$cssPath = $cssObjFile->path;
}
$GLOBALS['TL_CSS'][] = ($cssPath) ? $cssPath : $GLOBALS['SRL_CSS'].'?'.time();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment