Project

General

Profile

Revision 2ef80588

ID2ef805887283d67552f52dda63709b6c85d88c78
Parent b204adb9
Child 0d761a49

Added by Romain Chollet about 7 years ago

[#1570] Ajout du TCP dans les tests personnalisés, ajouts de tests pour éviter des warnings PHP, prise en charge du futur champ vigilo_template

Change-Id: I8652384cd1116ce54cdc66e48977c5174b1188be
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2311
Reviewed-by: Francois POIROTTE <>
Tested-by: Francois POIROTTE <>

View differences:

hook.php
18 18
        $confdir    = implode(DIRECTORY_SEPARATOR, $dirs);
19 19
        $file       = $confdir . DIRECTORY_SEPARATOR . "groups.xml";
20 20

  
21
        mkdir($confdir, 0770, true);
21
        if (!file_exists($confdir)) {
22
            mkdir($confdir, 0770, true);
23
        }
24

  
22 25
        $acc = "";
23 26
        foreach ($dirs as $dir) {
24 27
            $acc .= DIRECTORY_SEPARATOR . $dir;
......
40 43
            $confdir    = implode(DIRECTORY_SEPARATOR, $dirs);
41 44
            $file     = $confdir . DIRECTORY_SEPARATOR . $host->getName() . ".xml";
42 45

  
43
            mkdir($confdir, 0770, true);
46
            if (!file_exists($confdir)) {
47
                mkdir($confdir, 0770, true);
48
            }
44 49
            $acc = "";
45 50
            foreach ($dirs as $dir) {
46 51
                $acc .= DIRECTORY_SEPARATOR . $dir;
......
126 131
    public function manageNetworks($network)
127 132
    {
128 133
        global $DB;
129
        ;
130 134
        $id=$network->getField('items_id');
131 135
        $comp=new Computer();
132 136
        $comp->getFromDB($id);

Also available in: Unified diff