diff options
author | ramon <ramongomez@us.es> | 2018-02-27 10:55:06 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2018-02-27 10:55:06 +0000 |
commit | 9f1274ec297d6ea74b55e2207f19348cd35235ec (patch) | |
tree | 2595b29c14586c4777b18154021d044148bec417 /admin/WebConsole/clases | |
parent | 9eaa464c22e4dac4416d5d1aa0a6674b8b4e525f (diff) |
#804: Sustituir funciones para compatibilidad con PHP 7 ({{{split}}} por {{{explode}}} y {{{ereg...}}} por {{{preg_...}}}).
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5619 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/clases')
-rw-r--r-- | admin/WebConsole/clases/XmlPhp.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/clases/XmlPhp.php b/admin/WebConsole/clases/XmlPhp.php index 5ee3e9a9..90160b84 100644 --- a/admin/WebConsole/clases/XmlPhp.php +++ b/admin/WebConsole/clases/XmlPhp.php @@ -31,7 +31,7 @@ class XmlPhp{ $this->buffer=trim($this->buffer); } } - $this->buffer=ereg_replace( "[\n\r\t]"," ", $this->buffer ); + $this->buffer=preg_replace("/[\n\r\t]/"," ", $this->buffer ); } /* ------------------------------------------------------------------------------------------- Recupera la información del primer nodo (nodo raiz) del arbol.Devuelve false en caso de que @@ -187,7 +187,7 @@ class XmlPhp{ ---------------------------------------------------------------------------------------------*/ function NombreNodo(){ $infonodo=$this->Infonodo(); - $trozos=split(" ",$infonodo); + $trozos=explode(" ",$infonodo); return ($trozos[0]); } /* ------------------------------------------------------------------------------------------- |