Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-7344

FreePBX generated CSS link for module css files is wrong.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.10, 2.11, 12
    • Fix Version/s: 2.10, 2.11, 12
    • Labels:
      None
    • ToDo:

      Description

      Modules are not loading their css files. The link being generated contains a php variable. The function generating the link has a php variable contained within single quotes.

      Currently:

      $html .= '<link href="assets/$module_name/css/' . $module_page . '/' . $p_file . '" rel="stylesheet" type="text/css" />';

      Proposed fix:

      $html .= '<link href="assets/' . $module_name . '/css/' . $module_page . '/' . $p_file . '" rel="stylesheet" type="text/css" />';

      Looking through git, it appears the problem is present in 2.10, 2.11, and 12.0.

      File: /admin/libraries/view.functions.php
      Line: 346 (2.10), 359 (2.11, 12.0)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tm1000 Andrew Nagy
                Reporter:
                jsarrel jsarrel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.