projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a4e698
)
civicrm-version.php - Fix CMS detection in pre-booted Backdrop
author
Tim Otten
<totten@civicrm.org>
Fri, 11 May 2018 00:57:08 +0000
(17:57 -0700)
committer
Tim Otten
<totten@civicrm.org>
Fri, 11 May 2018 03:02:35 +0000
(20:02 -0700)
Ex 1: Running `drush` commands
Ex 2: Running `cv` with `--level=cms-only`
civicrm-version.php
patch
|
blob
|
blame
|
history
diff --git
a/civicrm-version.php
b/civicrm-version.php
index b0013037dce184f2d36713279f2e6dfcc3bcbb99..764bf552979b872352ae6c5e96c0959d767520d2 100755
(executable)
--- a/
civicrm-version.php
+++ b/
civicrm-version.php
@@
-26,6
+26,9
@@
namespace _CiviVersion_ {
if (defined('CIVICRM_UF')) {
return CIVICRM_UF;
}
+ elseif (defined('BACKDROP_VERSION')) {
+ return 'Backdrop';
+ }
elseif (function_exists('drupal_bootstrap') && version_compare(VERSION, '6.0', '>=') && version_compare(VERSION, '7.0', '<')) {
return 'Drupal6';
}