From e6de1a44981894e907fb07fe9d84c82fd5f5a472 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 29 Oct 2020 19:05:22 +0100 Subject: use new array syntax for texts in old/new mixed files --- it_text.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_text.class') diff --git a/it_text.class b/it_text.class index 660213e..7b27006 100644 --- a/it_text.class +++ b/it_text.class @@ -274,7 +274,7 @@ function dump_php() $oldmask = umask(002); $filename = $this->p['phpfiles'][0]; - $oldsyntax = file_exists($filename) && trim(it::exec('grep -q \'array(\' {filename} && echo array', ['filename' => $filename])); + $oldsyntax = file_exists($filename) && it::system('fgrep -q " => [" {filename}', ['filename' => $filename]); if ((count($this->p['phpfiles']) == 1) && ($f = it::fopen($filename, 'w'))) { $dump = 'statictext, true), array("=> \n array (" => "=> array(", "array (\n '_'" => "array(\n'_'", "\n ),\n " => "\n),\n", "\n ),\n" => "\n),\n", "\r" => "")) . ";\n?>\n"; -- cgit v1.2.3