Uploaded image for project: 'CMS CONTENIDO'
  1. CMS CONTENIDO
  2. CON-2805

Wrong replacement of module CSS after title or after opening head tag

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: CONTENIDO 4.10.0
    • Fix Version/s: CONTENIDO 4.10.1
    • Component/s: Core Code
    • Labels:
      None

      Description

      The module css replacement in cCodeGeneratorStandard works not as expected.
      Following code block ist buggy and should be fixed:

      if (preg_match_all("#(<head>.*?</title>)(.*?</head>)#si", $this->_layoutCode, $matches)) {
       $this->_layoutCode = cString::iReplaceOnce($matches[1][0], $matches[1][0] . $cssFile . $matches[2][0], $this->_layoutCode);
      }
      

      From what I read from the comment in line 216-217 the replacement should be after title tag or after opening head tag.

      See also related topic in forum:
      https://forum.contenido.org/viewtopic.php?t=43492

       

       

        Attachments

          Activity

            People

            • Assignee:
              xmurrix Murat Purc
              Reporter:
              xmurrix Murat Purc
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: