mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:45:16 +02:00
added comments, make typo checker work with redefined plural string functions
This commit is contained in:
parent
0f8bcacfdd
commit
00b5f6f8a1
3 changed files with 59 additions and 3 deletions
|
@ -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
11
util/typohelper.php
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue