1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

Removed old version constant

This commit is contained in:
eldadfux 2019-11-29 09:35:18 +02:00
parent 05b51bd700
commit e4e334e9e6
7 changed files with 9 additions and 12 deletions

View file

@ -1,5 +0,0 @@
<?php
const VERSION = '0.3.2';
return VERSION;

View file

@ -20,6 +20,7 @@ $utopia->shutdown(function () use ($utopia, $response, $request, $layout, $versi
$footer
->setParam('home', $request->getServer('_APP_HOME', ''))
->setParam('version', $version)
;
$layout

View file

@ -36,7 +36,7 @@ $response = new Response();
*/
$env = $request->getServer('_APP_ENV', App::ENV_TYPE_PRODUCTION);
$domain = $request->getServer('HTTP_HOST', '');
$version = include __DIR__.'/../app/config/version.php';
$version = $request->getServer('_APP_VERSION', 'UNKNOWN');
$providers = include __DIR__.'/../app/config/providers.php'; // OAuth providers list
$locales = include __DIR__.'/../app/config/locales.php'; // OAuth providers list
$collections = include __DIR__.'/../app/config/collections.php'; // OAuth providers list

View file

@ -1,4 +1,4 @@
# Generated by pub on 2019-11-21 20:19:20.138749.
# Generated by pub on 2019-11-29 09:30:15.272008.
charcode:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/
collection:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/collection-1.14.12/lib/
cookie_jar:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/cookie_jar-1.0.1/lib/

View file

@ -1,5 +1,6 @@
<?php
$home = $this->getParam('home', '');
$version = $this->getParam('version', '');
?>
<footer class="clear margin-top-xl">
<ul class="copyright pull-start">
@ -7,13 +8,13 @@ $home = $this->getParam('home', '');
<a href="https://github.com/appwrite/appwrite" target="_blank"><i class="icon-github-circled"></i> GitHub Repository</a>
</li>
<li>
<a href="https://github.com/appwrite/appwrite/issues/new?body=%0A%0A%0A---%0AAppwrite Version:%20<?php echo VERSION; ?>" target="_blank">Open an Issue</a>
<a href="https://github.com/appwrite/appwrite/issues/new?body=%0A%0A%0A---%0AAppwrite Version:%20<?php echo $version; ?>" target="_blank">Open an Issue</a>
</li>
<li>
<a href="<?php echo $home; ?>/docs" target="_blank">Documentation</a>
</li>
<li>
v:<?php echo VERSION; ?>
v:<?php echo $version; ?>
</li>
</ul>
</footer>

View file

@ -113,6 +113,6 @@ $canonical = $this->getParam('canonical', '');
<?php echo $this->exec($this->getParam('footer', [])); ?>
<!-- Version <?php echo VERSION; ?> -->
<!-- Version <?php echo $version; ?> -->
</body>
</html>

View file

@ -19,7 +19,7 @@ class UsageV1
public function perform()
{
global $register;
global $register, $version;
$projectId = $this->args['projectId'];
$method = $this->args['method'];
@ -29,7 +29,7 @@ class UsageV1
$statsd = $register->get('statsd', true);
$tags = ",project={$projectId},version=".VERSION.'';
$tags = ",project={$projectId},version=".$version.'';
// the global namespace is prepended to every key (optional)
$statsd->setNamespace('appwrite.usage');