added comments, make typo checker work with redefined plural string functions

This commit is contained in:
Friendika 2011-03-28 17:24:11 -07:00
parent 0f8bcacfdd
commit 00b5f6f8a1
3 changed files with 59 additions and 3 deletions

View file

@ -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);
}

11
util/typohelper.php Normal file
View file

@ -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);