]> git.wh0rd.org Git - tt-rss.git/commitdiff
add ttrss version and init params to reports
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 14 Mar 2014 10:20:32 +0000 (14:20 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 14 Mar 2014 10:20:32 +0000 (14:20 +0400)
index.php
js/functions.js
prefs.php

index 515e7ca76f8b23ad876cb7413b10d864a2c1c60c..79d4ad58df25010fba89e39331c20c6c8a90e4a3 100644 (file)
--- a/index.php
+++ b/index.php
 <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"); ?>
 
index 1ad15fcc672a2d7c3c45bbdc9273f6d91f2ccdae..ee9f2b7fd0ac9b9c82644dd12f32e2e34979307f 100644 (file)
@@ -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();
index 3a6410bdf79636ca8bbd6848f7df95b0daefee0b..6a83295f87b671b83a02c6f619481f27485b4643 100644 (file)
--- a/prefs.php
+++ b/prefs.php
 <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"); ?>