@@ -47,7 +47,7 @@ public function fixHostNameIDs()
4747 }
4848 }
4949 if (count ($ hostsOK )) {
50- if ($ service ->saveToMySQL ()) {
50+ if ($ service ->saveToSQL ()) {
5151 $ this ->addItemSmart (sprintf (_ ('<strong>%s</strong> : %s ' ), $ service ->getName (), implode (', ' , $ hostsOK )), array ('class ' => 'list-group-item ' ));
5252 $ this ->addStatusMessage (sprintf (_ ('%s : %s ' ), $ service ->getName (), implode (', ' , $ hostsOK )), 'success ' );
5353 $ hostsOK = array ();
@@ -70,7 +70,7 @@ public function fixHostNameIDs()
7070 }
7171 }
7272 if (count ($ hostsOK )) {
73- if ($ hostgroup ->saveToMySQL ()) {
73+ if ($ hostgroup ->saveToSQL ()) {
7474 $ this ->addItemSmart (sprintf (_ ('<strong>%s</strong> : %s ' ), $ hostgroup ->getName (), implode (', ' , $ hostsOK )), array ('class ' => 'list-group-item ' ));
7575 $ this ->addStatusMessage (sprintf (_ ('%s : %s ' ), $ hostgroup ->getName (), implode (', ' , $ hostsOK )), 'success ' );
7676 $ hostsOK = array ();
@@ -90,14 +90,14 @@ public function fixHostNameIDs()
9090 if ($ parent ->getId () != $ parent_id ) { //Ale nesedí ID
9191 $ child ->delMember ('parents ' , $ parent_id , $ parent_name );
9292 $ child ->addMember ('parents ' , $ parent ->getId (), $ parent_name );
93- $ child ->saveToMySQL ();
93+ $ child ->saveToSQL ();
9494 $ this ->addItemSmart (sprintf (_ ('Rodič <strong>%s</strong> hosta %s má špatné ID ' ), $ parent_name , $ child_info [$ host ->nameColumn ]), array ('class ' => 'list-group-item ' ));
9595 }
9696 } else {
9797 //Host tohoto jména neexistuje, nemůže být tedy PARENT
9898 $ this ->addItemSmart (sprintf (_ ('Rodič <strong>%s</strong> hosta %s neexistuje ' ), $ parent_name , $ child_info [$ host ->nameColumn ]), array ('class ' => 'list-group-item ' ));
9999 $ child ->delMember ('parents ' , $ parent ->getId (), $ parent_name );
100- $ child ->saveToMySQL ();
100+ $ child ->saveToSQL ();
101101 }
102102 }
103103 }
@@ -128,7 +128,7 @@ function fixContactIDs()
128128 }
129129 }
130130 if (count ($ contactsOK )) {
131- if ($ service ->saveToMySQL ()) {
131+ if ($ service ->saveToSQL ()) {
132132 $ this ->addItemSmart (sprintf (_ ('<strong>%s</strong> : %s ' ), $ service ->getName (), implode (', ' , $ contactsOK )), array ('class ' => 'list-group-item ' ));
133133 $ this ->addStatusMessage (sprintf (_ ('%s : %s ' ), $ service ->getName (), implode (', ' , $ contactsOK )), 'success ' );
134134 $ contactsOK = array ();
@@ -155,7 +155,7 @@ function fixContactIDs()
155155 }
156156 }
157157 if (count ($ contactsOK )) {
158- if ($ host ->saveToMySQL ()) {
158+ if ($ host ->saveToSQL ()) {
159159 $ this ->addItemSmart (sprintf (_ ('<strong>%s</strong> : %s ' ), $ host ->getName (), implode (', ' , $ contactsOK )), array ('class ' => 'list-group-item ' ));
160160 $ this ->addStatusMessage (sprintf (_ ('%s : %s ' ), $ host ->getName (), implode (', ' , $ contactsOK )), 'success ' );
161161 $ contactsOK = array ();
@@ -188,7 +188,7 @@ function fixHostHostgroupID()
188188 }
189189 }
190190 if (count ($ hostgroupsOK )) {
191- if ($ host ->saveToMySQL ()) {
191+ if ($ host ->saveToSQL ()) {
192192 $ this ->addItemSmart (sprintf (_ ('<strong>%s</strong> : %s ' ), $ host ->getName (), implode (', ' , $ hostgroupsOK )), array ('class ' => 'list-group-item ' ));
193193 $ this ->addStatusMessage (sprintf (_ ('%s : %s ' ), $ host ->getName (), implode (', ' , $ hostgroupsOK )), 'success ' );
194194 $ hostgroupsOK = array ();
0 commit comments