summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-03-14 14:20:32 +0400
committerAndrew Dolgov <[email protected]>2014-03-14 14:20:32 +0400
commit8b91b0beb59bc6f7d9e1e75997d77f3bd64d961a (patch)
treeed3f156935e1ec476654e1e33c890605dce31c45
parentcbcf6517dca6d3c0ba32745969b6fe4d73d704ba (diff)
add ttrss version and init params to reports
-rw-r--r--index.php4
-rw-r--r--js/functions.js2
-rw-r--r--prefs.php4
3 files changed, 10 insertions, 0 deletions
diff --git a/index.php b/index.php
index 515e7ca76..79d4ad58d 100644
--- a/index.php
+++ b/index.php
@@ -56,6 +56,10 @@
<head>
<title>Tiny Tiny RSS</title>
+ <script type="text/javascript">
+ var __ttrss_version = "<?php echo VERSION ?>"
+ </script>
+
<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
<?php echo stylesheet_tag("css/layout.css"); ?>
diff --git a/js/functions.js b/js/functions.js
index 1ad15fcc6..ee9f2b7fd 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -111,6 +111,8 @@ function exception_error(location, e, ext_info) {
browserVersion: navigator.appVersion,
browserPlatform: navigator.platform,
browserCookies: navigator.cookieEnabled,
+ ttrssVersion: __ttrss_version,
+ initParams: JSON.stringify(init_params),
}).toQueryString();
document.forms['exceptionForm'].submit();
diff --git a/prefs.php b/prefs.php
index 3a6410bdf..6a83295f8 100644
--- a/prefs.php
+++ b/prefs.php
@@ -32,6 +32,10 @@
<head>
<title>Tiny Tiny RSS : <?php echo __("Preferences") ?></title>
+ <script type="text/javascript">
+ var __ttrss_version = "<?php echo VERSION ?>"
+ </script>
+
<?php echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); ?>
<?php echo stylesheet_tag("css/layout.css"); ?>