diff options
author | Friendika <info@friendika.com> | 2011-03-28 17:24:11 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-03-28 17:24:11 -0700 |
commit | 00b5f6f8a1bdc004380fd75dd5e6dc52117dd6d7 (patch) | |
tree | f162f58200cb4bb965c680eb79f39fc5027380d2 /util | |
parent | 0f8bcacfdd6e724800e3fe2f0cf4ec300a6c289b (diff) | |
download | volse-hubzilla-00b5f6f8a1bdc004380fd75dd5e6dc52117dd6d7.tar.gz volse-hubzilla-00b5f6f8a1bdc004380fd75dd5e6dc52117dd6d7.tar.bz2 volse-hubzilla-00b5f6f8a1bdc004380fd75dd5e6dc52117dd6d7.zip |
added comments, make typo checker work with redefined plural string functions
Diffstat (limited to 'util')
-rw-r--r-- | util/typo.php | 8 | ||||
-rw-r--r-- | util/typohelper.php | 11 |
2 files changed, 18 insertions, 1 deletions
diff --git a/util/typo.php b/util/typo.php index 84a50e15e..e20cce86a 100644 --- a/util/typo.php +++ b/util/typo.php @@ -37,6 +37,11 @@ } } + if(x($a->config,'php_path')) + $phpath = $a->config['php_path']; + else + $phpath = 'php'; + echo "String files\n"; echo 'util/strings.php' . "\n"; @@ -47,5 +52,6 @@ foreach($files as $file) { echo $file . "\n"; - include_once($file); + passthru($phpath . ' util/typohelper.php ' . $file); +// include_once($file); } diff --git a/util/typohelper.php b/util/typohelper.php new file mode 100644 index 000000000..589702a02 --- /dev/null +++ b/util/typohelper.php @@ -0,0 +1,11 @@ +<?php + +$str = <<< EOT + error_reporting(E_ERROR | E_WARNING | E_PARSE ); + ini_set('display_errors', '1'); + ini_set('log_errors','0'); +EOT; + + $str .= str_replace('<?php', '', file_get_contents($argv[1])); + + eval($str); |