View Issue Details

IDProjectCategoryView StatusLast Update
0003305OXID eShop (all versions)2.3. Extensions (modules, themes)public2012-12-10 13:33
Reporterwanis 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version4.5.10 revision 44222 
Summary0003305: oxstyle then file dont exits or contains question mark fills array with empty record
Descriptionif you try to include non existing CSS file like this:
[{oxstyle include="non_existin_file.css"}]
it outputs at the end empty includeline like this:
<link rel="stylesheet" type="text/css" href="">

also if you want to make files with version tags (adding question mark fallowed by date like style.css?20111012) it also return empty line
Steps To Reproducein templates add one or both lines
[{oxstyle include="non_existin_file.css"}]
[{oxstyle include="css/layout.css?20111012"}]
Additional Informationcould be solved by this code update:
line 55:
...
        if (!preg_match('#^https?://#', $sStyle)) {
            //skip query part
            $aStylePart = explode('?', $sStyle);
            $sStyle = $myConfig->getResourceUrl($aStylePart[0]);

            // file not found
            if (!$sStyle) {
                return;
            }
            if (count($aStylePart) > 1) {
                $sStyle .= '?'.$aStylePart[1];
            }
        }
...
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
MySQL Versionany

Relationships

related to 0003725 resolvedalfonsas_cirtautas Auto-Update Style (CSS) Sheets 

Activities

alfonsas_cirtautas

2012-04-14 19:47

reporter   ~0006295

fixed, do not include non existing resources and handle query string part correctly. Fix applied to both {oxscript} and {oxstyle} smarty plug-ins.

Thanks for reporting!