aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-07-19 09:12:33 +0200
committerMario Vavti <mario@mariovavti.com>2018-07-19 09:12:33 +0200
commitfe0e00f8f8c6b94389ee28c84dfabd80ac988ac9 (patch)
tree700ad3d11c0a1720bc776004d68fda3b3a68dddf /util
parentdfbdeafa39da8605c124f47d811ebca2330d9169 (diff)
parentec852b0c8d6c8e566b2a5fb279ed359630afb5ee (diff)
downloadvolse-hubzilla-fe0e00f8f8c6b94389ee28c84dfabd80ac988ac9.tar.gz
volse-hubzilla-fe0e00f8f8c6b94389ee28c84dfabd80ac988ac9.tar.bz2
volse-hubzilla-fe0e00f8f8c6b94389ee28c84dfabd80ac988ac9.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'util')
-rw-r--r--util/typo.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/util/typo.php b/util/typo.php
index e25e57601..bed5fa5f6 100644
--- a/util/typo.php
+++ b/util/typo.php
@@ -12,25 +12,27 @@
App::init();
+ $cmd = ((x(App::$config,'system')) && (x(App::$config['system'],'php_path')) && (strlen(App::$config['system']['php_path'])) ? App::$config['system']['php_path'] : 'php') . ' -l ';
+
echo "Directory: include\n";
$files = glob('include/*.php');
foreach($files as $file) {
- echo $file . "\n";
+ echo exec($cmd . $file) . "\n";
include_once($file);
}
echo "Directory: include/dba\n";
$files = glob('include/dba/*.php');
foreach($files as $file) {
- echo $file . "\n";
+ echo exec($cmd . $file) . "\n";
include_once($file);
}
echo "Directory: include/photo\n";
$files = glob('include/photo/*.php');
foreach($files as $file) {
- echo $file . "\n";
+ echo exec($cmd . $file) . "\n";
include_once($file);
}
@@ -39,7 +41,7 @@
$files = glob('Zotlabs/*/*.php');
foreach($files as $file) {
if((strpos($file,'SiteModule') === false) || (strpos($file,'SiteWidget') === false)) {
- echo $file . "\n";
+ echo exec($cmd . $file) . "\n";
include_once($file);
}
}
@@ -47,7 +49,7 @@
echo "Directory: Zotlabs/Module (sub-modules)\n";
$files = glob('Zotlabs/Module/*/*.php');
foreach($files as $file) {
- echo $file . "\n";
+ echo exec($cmd . $file) . "\n";
include_once($file);
}
@@ -58,7 +60,7 @@
$addon = basename($dir);
$files = glob($dir . '/' . $addon . '.php');
foreach($files as $file) {
- echo $file . "\n";
+ echo exec($cmd . $file) . "\n";
include_once($file);
}
}
@@ -77,6 +79,6 @@
$files = glob('view/*/hstrings.php');
foreach($files as $file) {
- echo $file . "\n";
+ echo exec($cmd . $file) . "\n";
passthru($phpath . ' util/typohelper.php ' . $file);
}