issue with siteinfo

This commit is contained in:
nobody 2021-04-01 14:46:50 -07:00
parent 4805473bd0
commit eb8db87fe6
3 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,7 @@ class System {
static public function get_project_version() {
if((! array_path_exists('system/hide_version', App::$config)) || App::$config['system']['hide_version'])
if(array_path_exists('system/hide_version', App::$config) && intval(App::$config['system']['hide_version']))
return '';
if(is_array(App::$config) && is_array(App::$config['system']) && array_key_exists('std_version',App::$config['system']))
return App::$config['system']['std_version'];
@ -112,7 +112,7 @@ class System {
static public function compatible_project($p) {
if (in_array(strtolower($p),['hubzilla','zap','red','misty','mistpark','redmatrix','osada'])) {
if (in_array(strtolower($p),['hubzilla','zap','red','misty','mistpark','redmatrix','osada', 'roadhouse'])) {
return true;
}
return false;

View file

@ -7,7 +7,7 @@ class Sites extends \Zotlabs\Web\Controller {
function get() {
$sql_extra = (($_REQUEST['project']) ? " and site_project = '" . escape_tags(protect_sprintf(escape_tags($_REQUEST['project']))) . "' " : "");
$sql_extra = (($_REQUEST['project']) ? " and site_project = '" . escape_tags(protect_sprintf(dbesc($_REQUEST['project']))) . "' " : "");
$desc = t('This page provides information about related projects and websites that are currently known to this system. These are a small fraction of the thousands of websites and dozens of projects and providers which make up the fediverse.');

View file

@ -16,7 +16,7 @@ use Zotlabs\Daemon\Run;
* @brief This file defines some global constants and includes the central App class.
*/
define ( 'STD_VERSION', '21.03.31' );
define ( 'STD_VERSION', '21.04.02' );
define ( 'ZOT_REVISION', '10.0' );
define ( 'DB_UPDATE_VERSION', 1247 );