Skip to content

Commit

Permalink
Issue #15: ensure constant is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
herbdool committed Jan 6, 2021
1 parent 9d089c0 commit 48eb1bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion backdrop_upgrade_status.fetch.inc
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,20 @@ function _backdrop_upgrade_status_build_fetch_url($project, $version) {

return $url;
}

/**
* Get Backdrop Project Status URL.
*
* @param array $project
* @param string $version
*
* @return string
* URL to XML of project releases.
*/
function _backdrop_upgrade_status_build_fetch_url_backdrop($project, $version) {
module_load_include('module', 'backdrop_upgrade_status', 'backdrop_upgrade_status');
$name = $project['name'];
$url = BACKDROP_UPGRADE_UPDATE_DEFAULT_URL . '/' . $name . '/1.x';
$url = BACKDROP_UPGRADE_UPDATE_DEFAULT_URL . '/' . $name . '/' . $version;

return $url;
}
2 changes: 1 addition & 1 deletion backdrop_upgrade_status.module
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ define('BACKDROP_UPGRADE_STATUS_CORE', 5000);
define('BACKDROP_UPGRADE_STATUS_OBSOLETE', 3000);

/**
* Project has become obsolete by an alternative.
* Default project release history URL.
*/
define('BACKDROP_UPGRADE_UPDATE_DEFAULT_URL', 'https://updates.backdropcms.org/release-history');

Expand Down

0 comments on commit 48eb1bd

Please sign in to comment.