Added platforms env var
This commit is contained in:
parent
93d4bc9e29
commit
879827d000
|
@ -2,7 +2,7 @@
|
|||
|
||||
include_once __DIR__ . '/../shared/web.php';
|
||||
|
||||
global $utopia, $response, $request, $layout, $version, $providers, $sdks;
|
||||
global $utopia, $response, $request, $layout, $version, $providers, $sdks, $platforms;
|
||||
|
||||
use Utopia\View;
|
||||
|
||||
|
@ -17,6 +17,7 @@ $layout
|
|||
->setParam('title', APP_NAME)
|
||||
->setParam('description', '')
|
||||
->setParam('class', 'home')
|
||||
->setParam('platforms', $platforms)
|
||||
->setParam('header', [$header])
|
||||
->setParam('footer', [$footer])
|
||||
;
|
||||
|
|
|
@ -6,6 +6,7 @@ $protocol = $this->getParam('protocol', '');
|
|||
$domain = $this->getParam('domain', '');
|
||||
$api = $this->getParam('api', '');
|
||||
$project = $this->getParam('project', 'console');
|
||||
$platforms = $this->getParam('platforms', []);
|
||||
$version = $this->getParam('version', '0.0.0');
|
||||
$isDev = $this->getParam('isDev', false);
|
||||
$litespeed = $this->getParam('litespeed', true);
|
||||
|
@ -60,6 +61,7 @@ $canonical = $this->getParam('canonical', '');
|
|||
HOME: '<?php echo $this->escape($this->getParam('home')); ?>',
|
||||
API: '<?php echo $api; ?>/v1',
|
||||
PROJECT: '<?php echo $project; ?>',
|
||||
PLATFORMS: '<?php echo $platforms; ?>',
|
||||
LOCALE: '<?php echo $this->escape(Locale::getText('settings.locale')); ?>',
|
||||
PREFIX: '<?php echo $this->escape($this->getParam('prefix')); ?>',
|
||||
ROLES: <?PHP echo json_encode($this->getParam('roles', [])); ?>,
|
||||
|
|
Loading…
Reference in a new issue