From d63df2c29a63a859439cd2e424a8757c7c49dbee Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 17 Aug 2006 05:45:44 +0000 Subject: [PATCH] We now can produce the temporary folders correctly --- docs/makepo.sh.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/docs/makepo.sh.php b/docs/makepo.sh.php index 47fcc95..4e0eeac 100755 --- a/docs/makepo.sh.php +++ b/docs/makepo.sh.php @@ -54,25 +54,16 @@ foreach ($filelist AS $dirpath => $nodes) function process_template_text($text) { - return ''; + return ''; } foreach ($templates AS $paths) { $template = file_get_contents($paths['orig']); - if (strpos($template, '{@') === false) - { - continue; - } - - $template = str_replace('"', '\"', $template); - - $template = preg_replace('#\{@\\\"(.*?)\\\"\}#ise', 'process_template_text(\'$1\')', $template); - - print($template); exit; + $template = preg_replace('#\{@\\"(.*?)\\"\}#ise', 'process_template_text(\'$1\')', $template); - file_put_contents($paths['temp'], preg_replace('#\{@"(.*)"\}#e', "process_template_text('\1')", $template)); + file_put_contents($paths['temp'], $template); } /*=====================================================================*\ -- 2.43.5