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

Error message in CRM_Core_Smarty::__construct() using $smarty instead of $this

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.3
    • Component/s: None
    • Labels:
      None

      Description

      That's a stupid blunder.

      In CRM_Core_Smarty::__construct()

      existing:

      if ( ! is_writable( $this->compile_dir ) ) {
      echo "CiviCRM doeso not have permission to write temp files in {$smarty->compile_dir}, Exiting";
      exit( );
      }

      correct would be:

      if ( ! is_writable( $this->compile_dir ) ) {
      echo "CiviCRM does not have permission to write temp files in {$this->compile_dir}, Exiting";
      exit( );
      }

      $smarty is not defined in this context. Also, look at the funny "doeso" typo.

      Severity: Does not cause trouble by itself, but confuses the person who wants to fix the file permissions.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              donquixote Andreas Hennings
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: