Skip to content
This repository was archived by the owner on Mar 4, 2019. It is now read-only.

Commit c2fe28e

Browse files
committed
More fixes.
1 parent 602fe26 commit c2fe28e

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

modules/custom/btrCore/btrCore.admin.inc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ function btrCore_config_set_languages() {
100100
field_update_field($info);
101101

102102
// Update the cached value of btrClient_languages.
103-
cache_clear_all('btrClient_languages', 'cache_btrClient');
104-
$languages = btrClient_get_languages();
103+
if (module_exists('btrClient')) {
104+
cache_clear_all('btrClient_languages', 'cache_btrClient');
105+
$languages = btrClient_get_languages();
106+
}
105107
}

modules/custom/btrCore/data/import/vocabulary.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
### go to the script directory
55
cd $(dirname $0)
66

7-
### get config vars
8-
. ../config.sh
7+
### set drush site
8+
drush="drush $1"
99

1010
origin='vocabulary'
1111
for file in $(ls vocabulary/*.po)

modules/custom/btrCore/data/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mysql=$(drush sql-connect)
88
$mysql < db/btr_schema.sql
99

1010
### import the vocabulary projects
11-
import/vocabulary.sh
11+
import/vocabulary.sh --root=/var/www/btr
1212

1313
### import some PO files, just for testing/development
1414
test/update.sh

modules/custom/btrCore/data/test/import-kdeadmin.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
### go to the script directory
44
cd $(dirname $0)
55

6-
### set drush alias
7-
drush="drush $1"
6+
### set drush root
7+
drush="drush --root=/var/www/btr"
88

99
### set some variables
1010
origin=test

modules/custom/btrCore/data/test/import-kturtle.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
### go to the script directory
44
cd $(dirname $0)
55

6-
### set drush alias
7-
drush="drush $1"
6+
### set drush root
7+
drush="drush --root=/var/www/btr"
88

99
### set some variables
1010
origin=test

modules/custom/btrCore/data/test/import-office-desktop.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
### go to the script directory
44
cd $(dirname $0)
55

6-
### set drush alias
7-
drush="drush $1"
6+
### set drush root
7+
drush="drush --root=/var/www/btr"
88

99
### set some variables
1010
origin=test

modules/custom/btrCore/data/test/import-pingus.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
### go to the script directory
44
cd $(dirname $0)
55

6-
### set drush alias
7-
drush="drush $1"
6+
### set drush root
7+
drush="drush --root=/var/www/btr"
88

99
### set some variables
1010
origin=test

0 commit comments

Comments
 (0)