XMPP invitation landing page, without javascript
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/index.php b/index.php
index 4a126df..b8a2b5b 100644
--- a/index.php
+++ b/index.php
@@ -23,7 +23,10 @@
$name = ucfirst(explode("@", substr($uri, 5))[0]);
function t($template) {
GLOBAL $name;
- return str_replace('{{name}}', $name, $template);
+ GLOBAL $os;
+ $template = str_replace('{{name}}', $name, $template);
+ $template = str_replace('{{os}}', $os, $template);
+ return $template;
}
?>
<!DOCTYPE html>
@@ -52,7 +55,7 @@
<!--div class="qrcode" id="qrcode">TODO</div-->
<p class="lead text-center" id="clients"><?= $lang->clients; ?></p>
- <p class="lead text-center" id="recommend"><?= $lang->recommend; ?></p>
+ <p class="lead text-center" id="recommend"><?= t($lang->recommend); ?></p>
<p class="lead img-center text-center" id="client_list">
<?php