Skip to content

Commit 0ae602e

Browse files
committed
Merge branch 'release/1.7.0'
2 parents 35aef3a + cb4d0d9 commit 0ae602e

23 files changed

+1173
-797
lines changed

.travis.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
language: php
22
php:
3-
- 5.5
43
- 5.6
54
- 7.0
65
- 7.1
@@ -11,28 +10,25 @@ env:
1110
- DB=mysql
1211
matrix:
1312
#- GLPIVER=9.1.2 ==> not released yet!
14-
- GLPIVER=9.1/bugfixes
13+
- GLPIVER=9.2/bugfixes
1514
- GLPIVER=master
1615

1716
before_script:
1817
- composer self-update
1918
- git clone --depth=1 https://github.com/glpi-project/glpi -b $GLPIVER ../glpi && cd ../glpi
2019
- composer install --no-dev
2120
- mysql -u root -e 'create database glpitest;'
22-
- php tools/cliinstall.php --db=glpi-test --user=travis --tests
21+
- php tools/cliinstall.php --db=glpitest --user=root --tests
2322
- mv ../fields plugins/fields
2423
- cd plugins/fields
2524
- composer install -o
2625

2726
script:
2827
- vendor/bin/robo --no-interaction code:cs
2928
- mysql -u root -e 'select version();'
30-
- ./vendor/bin/atoum -bf tests/bootstrap.php -d tests/units/
29+
- ./vendor/bin/atoum --debug -bf tests/bootstrap.php -d tests/units/
3130

3231
matrix:
33-
exclude:
34-
- php: 5.4
35-
env: GLPIVER=master
3632
allow_failures:
3733
- php: nightly
3834

ajax/reorder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
include ("../../../inc/includes.php");
33

4-
$table = getTableForItemType('PluginFieldsField');
4+
$table = PluginFieldsField::getTable();
55

66
// Récupération de l'ID du champ à modifier
77
$query = "SELECT id FROM $table

ajax/viewtranslations.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
if ($canedit) {
5151
$translation->showForm($_POST['itemtype'], $_POST['items_id'], $_POST['id']);
5252
} else {
53-
_e('Access denied');
53+
echo __('Access denied');
5454
}
5555

5656
Html::ajaxFooter();

composer.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
"prefer-stable": true,
44
"require-dev": {
55
"glpi-project/tools": "^0.1.0",
6-
"atoum/atoum": "^2.8"
7-
},
8-
"scripts": {
9-
"post-install-cmd": "if [ $COMPOSER_DEV_MODE -eq 1 ]; then patch -d vendor/atoum/atoum -p1 < tools/atoum-php71.patch; fi"
6+
"atoum/atoum": "^3.1"
107
},
118
"require": {
9+
"php": ">=5.6.0",
1210
"zendframework/zend-loader": "^2.5"
11+
},
12+
"config": {
13+
"optimize-autoloader": true,
14+
"platform": {
15+
"php": "5.6.0"
16+
}
1317
}
1418
}

0 commit comments

Comments
 (0)