Removed old version constant
This commit is contained in:
parent
05b51bd700
commit
e4e334e9e6
|
@ -1,5 +0,0 @@
|
|||
<?php
|
||||
|
||||
const VERSION = '0.3.2';
|
||||
|
||||
return VERSION;
|
|
@ -20,6 +20,7 @@ $utopia->shutdown(function () use ($utopia, $response, $request, $layout, $versi
|
|||
|
||||
$footer
|
||||
->setParam('home', $request->getServer('_APP_HOME', ''))
|
||||
->setParam('version', $version)
|
||||
;
|
||||
|
||||
$layout
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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/
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue