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

Changes to allow drush to run civimail and other crons

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.3.5
    • Fix Version/s: 3.4.alpha
    • Component/s: None
    • Labels:
      None

      Description

      The following patch adds minor checks to see if civicrm is being called by drush, and if yes, does not include the civicrm.config.php (which is included with a relative path, so drush crashes, since it is not always in a specific directory).

      For CRM/Utils/System/Drupal.php, it also simplifies the check (returns faster), since otherwise the path is similar to /var/foo/bar/drupalroot/, and then the function removes the last part, assuming that it is a php script.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                deepak Deepak Srivastava
                Reporter:
                mlutfy Mathieu Lutfy
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: