View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003305 | OXID eShop (all versions) | 2.3. Extensions (modules, themes) | public | 2011-10-12 12:18 | 2012-12-10 13:33 |
Reporter | wanis | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Fixed in Version | 4.5.10 revision 44222 | ||||
Summary | 0003305: oxstyle then file dont exits or contains question mark fills array with empty record | ||||
Description | if 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 Reproduce | in templates add one or both lines [{oxstyle include="non_existin_file.css"}] [{oxstyle include="css/layout.css?20111012"}] | ||||
Additional Information | could 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]; } } ... | ||||
Tags | No tags attached. | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||
related to | 0003725 | resolved | alfonsas_cirtautas | Auto-Update Style (CSS) Sheets |