fix for old style version specifiers
This commit is contained in:
parent
2d83ea86dc
commit
a90a0874b8
@ -38,6 +38,11 @@ class Pubsites extends \Zotlabs\Web\Controller {
|
|||||||
foreach($j['sites'] as $jj) {
|
foreach($j['sites'] as $jj) {
|
||||||
if(! $jj['project'])
|
if(! $jj['project'])
|
||||||
continue;
|
continue;
|
||||||
|
if(strpos($jj['version'],' ')) {
|
||||||
|
$x = explode(' ', $jj['version']);
|
||||||
|
if($x[1])
|
||||||
|
$jj['version'] = $x[1];
|
||||||
|
}
|
||||||
$m = parse_url($jj['url']);
|
$m = parse_url($jj['url']);
|
||||||
$host = strtolower(substr($jj['url'],strpos($jj['url'],'://')+3));
|
$host = strtolower(substr($jj['url'],strpos($jj['url'],'://')+3));
|
||||||
$rate_links = ((local_channel()) ? '<td><a href="rate?f=&target=' . $host . '" class="btn-btn-default"><i class="fa fa-check-square-o"></i> ' . t('Rate') . '</a></td>' : '');
|
$rate_links = ((local_channel()) ? '<td><a href="rate?f=&target=' . $host . '" class="btn-btn-default"><i class="fa fa-check-square-o"></i> ' . t('Rate') . '</a></td>' : '');
|
||||||
|
@ -3963,9 +3963,6 @@ function zotinfo($arr) {
|
|||||||
require_once('include/channel.php');
|
require_once('include/channel.php');
|
||||||
$ret['site']['channels'] = channel_total();
|
$ret['site']['channels'] = channel_total();
|
||||||
|
|
||||||
|
|
||||||
$ret['site']['version'] = Zotlabs\Lib\System::get_platform_name() . ' ' . STD_VERSION . '[' . DB_UPDATE_VERSION . ']';
|
|
||||||
|
|
||||||
$ret['site']['admin'] = get_config('system','admin_email');
|
$ret['site']['admin'] = get_config('system','admin_email');
|
||||||
|
|
||||||
$visible_plugins = array();
|
$visible_plugins = array();
|
||||||
|
Reference in New Issue
Block a user