Verified Commit 5047f166 authored by noplanman's avatar noplanman

Fix debug output for software versions.

parent 57c620ac
...@@ -27,7 +27,7 @@ curl_setopt($mv, CURLOPT_RETURNTRANSFER, 1); ...@@ -27,7 +27,7 @@ curl_setopt($mv, CURLOPT_RETURNTRANSFER, 1);
$outputmv = curl_exec($mv); $outputmv = curl_exec($mv);
curl_close($mv); curl_close($mv);
$fmasterversion = preg_match('/define.*\'FRIENDICA_VERSION\'.*\'(.*)\'/', $outputmv, $version) ? $version[1] : ''; $fmasterversion = preg_match('/define.*\'FRIENDICA_VERSION\'.*\'(.*)\'/', $outputmv, $version) ? $version[1] : '';
_debug('Friendica Masterversion: ' . $fmasterversion); _debug('Friendica Masterversion', $fmasterversion);
//get master code version for hubzilla pods //get master code version for hubzilla pods
$mv = curl_init(); $mv = curl_init();
...@@ -37,7 +37,7 @@ curl_setopt($mv, CURLOPT_RETURNTRANSFER, 1); ...@@ -37,7 +37,7 @@ curl_setopt($mv, CURLOPT_RETURNTRANSFER, 1);
$outputmv = curl_exec($mv); $outputmv = curl_exec($mv);
curl_close($mv); curl_close($mv);
$hmasterversion = preg_match('/define.*\'STD_VERSION\'.*\'(.*)\'/', $outputmv, $version) ? $version[1] : '' ; $hmasterversion = preg_match('/define.*\'STD_VERSION\'.*\'(.*)\'/', $outputmv, $version) ? $version[1] : '' ;
_debug('Hubzilla Masterversion: ' . $hmasterversion); _debug('Hubzilla Masterversion', $hmasterversion);
$dbh = pg_connect("dbname=$pgdb user=$pguser password=$pgpass"); $dbh = pg_connect("dbname=$pgdb user=$pguser password=$pgpass");
$dbh || die('Error in connection: ' . pg_last_error()); $dbh || die('Error in connection: ' . pg_last_error());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment