diff options
author | Urban Müller | 2018-06-22 08:54:54 +0200 |
---|---|---|
committer | Urban Müller | 2018-06-22 08:54:54 +0200 |
commit | 99b7fc8dc08da090bb7f00c2882e1daeec4434ba (patch) | |
tree | 30e2348c995d39d153c0d2056ee2fb69190f7862 /it_text.class | |
parent | 3dabbbd5325c9fad9582cd44b1da68dece78eaa0 (diff) | |
download | itools-99b7fc8dc08da090bb7f00c2882e1daeec4434ba.tar.gz itools-99b7fc8dc08da090bb7f00c2882e1daeec4434ba.tar.bz2 itools-99b7fc8dc08da090bb7f00c2882e1daeec4434ba.zip |
Revert "use safer it:: variants of file funcs"
This reverts commit 05e7ceefa1f0a29c665381b54ac882f260ae6c22.
Diffstat (limited to 'it_text.class')
-rw-r--r-- | it_text.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_text.class b/it_text.class index 5b43ea6..a8782ce 100644 --- a/it_text.class +++ b/it_text.class @@ -34,7 +34,7 @@ class it_text * @param $p['fallbacklanguage'] optional language to use for undefined texts (useful for partially translated projects) * @param $p['forcelanguage'] optional language to use instead of user's preferred language * @param $p['global'] store text object in global it_text for global functions (default: true) - * @param $p['phpfile'] optional texts it::file(s), default: all texts.php in include path + * @param $p['phpfile'] optional texts file(s), default: all texts.php in include path * @param $p['phpfiles'] text files to load in addition to $p['phpfile'] (Note: $p['phpfile'] defaults to all texts.php files in include path) * @param $p['transmogrifiers'] comma separated functions that may be called by using {foo:bar} (foo will be called with bar as argument) in T() */ @@ -273,7 +273,7 @@ function dump_php() $this->statictext = array_merge(array('_' => $this->statictext['_']), $this->statictext); $oldmask = umask(002); - if ((count($this->p['phpfiles']) == 1) && ($f = it::fopen($this->p['phpfiles'][0], 'w'))) + if ((count($this->p['phpfiles']) == 1) && ($f = fopen($this->p['phpfiles'][0], 'w'))) { $result = (fputs($f, '<?php return ' . strtr(var_export($this->statictext, true), array("=> \n array (" => "=> array(", "array (\n '_'" => "array(\n'_'", "\n ),\n " => "\n),\n", "\n ),\n" => "\n),\n", "\r" => "")) . ";\n?>\n") !== false); fclose($f); |