aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Pubsites.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-08 22:56:51 -0700
committerredmatrix <mike@macgirvin.com>2016-09-08 22:56:51 -0700
commita90a0874b869071d370d8a65acc5d16231eb903d (patch)
treeaa6693112430c5dd69d072a84f9eb76a3452f4aa /Zotlabs/Module/Pubsites.php
parent2d83ea86dca57e6fde65ee93366974ed53d0784f (diff)
downloadvolse-hubzilla-a90a0874b869071d370d8a65acc5d16231eb903d.tar.gz
volse-hubzilla-a90a0874b869071d370d8a65acc5d16231eb903d.tar.bz2
volse-hubzilla-a90a0874b869071d370d8a65acc5d16231eb903d.zip
fix for old style version specifiers
Diffstat (limited to 'Zotlabs/Module/Pubsites.php')
-rw-r--r--Zotlabs/Module/Pubsites.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Pubsites.php b/Zotlabs/Module/Pubsites.php
index a66fd9c7a..1c9cd5121 100644
--- a/Zotlabs/Module/Pubsites.php
+++ b/Zotlabs/Module/Pubsites.php
@@ -38,6 +38,11 @@ class Pubsites extends \Zotlabs\Web\Controller {
foreach($j['sites'] as $jj) {
if(! $jj['project'])
continue;
+ if(strpos($jj['version'],' ')) {
+ $x = explode(' ', $jj['version']);
+ if($x[1])
+ $jj['version'] = $x[1];
+ }
$m = parse_url($jj['url']);
$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>' : '');