Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Issue #2358075 by Heis Spiter : Added include switch for drush above …
Browse files Browse the repository at this point in the history
…v. 5 in order to ba able to locate pm_release_recommended().
  • Loading branch information
Florian Latzel committed Oct 20, 2014
1 parent ac967ef commit 14bec51
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions includes/nagios.inc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ define('NAGIOS_WARNING', 1);
define('NAGIOS_CRITICAL', 2);

/** @} */

/**
* Drush version switch for including needed pm_release_recommended()
* in drush above v.5 which lives there in a different place.
*
* @see https://www.drupal.org/node/2358075
*/
if ((int)DRUSH_VERSION > 5) {
$doc_prefix = drush_get_context('DOC_PREFIX');
include_once $doc_prefix . '/commands/pm/updatestatus.pm.inc';
}

/**
* @defgroup helper_functions Helper functions
Expand Down

0 comments on commit 14bec51

Please sign in to comment.