Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-924

resourceBase trailingslash URL incorrect on Windows

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When CiviCRM v1.4 is installed on a Windows XP machine. The IMG SRC tags are incorrect. The problem stems from the $config->resourceBase variable has an extra '\' added by the addTrailingSlash in modules/civicrm/CRM/Core/Config.php

      An example of the broken IMG SRC tag is below.

      src="/modules/civicrm/\i/admin/Profile.png" alt="CiviCRM Profile"/>

      The section of code with the problem in Config.php is..
      if ( defined( 'CIVICRM_RESOURCEBASE' ) )

      { $this->resourceBase = self::addTrailingSlash( CIVICRM_RESOURCEBASE); }

      I believe this needs to be changed to
      if ( defined( 'CIVICRM_RESOURCEBASE' ) )

      { $this->resourceBase = self::addTrailingSlash( CIVICRM_RESOURCEBASE, '/' ); }

        Attachments

          Activity

            People

            • Assignee:
              shot Piotr Szotkowski
              Reporter:
              edgyct Ed Geraghty
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: