redmatrix is no longer considered a supported platform and will not be listed in pubsites as of 2.x
This commit is contained in:
parent
36322acb6d
commit
abb3341030
@ -54,5 +54,11 @@ class System {
|
||||
return '0.0.0';
|
||||
}
|
||||
|
||||
|
||||
static public function compatible_project($p) {
|
||||
foreach(['hubzilla','zap'] as $t) {
|
||||
if(stristr($p,$t))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class Dirsearch extends \Zotlabs\Web\Controller {
|
||||
|
||||
}
|
||||
|
||||
function get() {
|
||||
function get() {
|
||||
|
||||
$ret = array('success' => false);
|
||||
|
||||
@ -457,6 +457,6 @@ class Dirsearch extends \Zotlabs\Web\Controller {
|
||||
}
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ class Pubsites extends \Zotlabs\Web\Controller {
|
||||
$o .= '</tr>';
|
||||
if($j['sites']) {
|
||||
foreach($j['sites'] as $jj) {
|
||||
if(! $jj['project'])
|
||||
if(! \Zotlabs\Lib\System::compatible_project($jj['project']))
|
||||
continue;
|
||||
if(strpos($jj['version'],' ')) {
|
||||
$x = explode(' ', $jj['version']);
|
||||
|
Reference in New Issue
Block a user