add ttrss version and init params to reports

This commit is contained in:
Andrew Dolgov 2014-03-14 14:20:32 +04:00
parent cbcf6517dc
commit 8b91b0beb5
3 changed files with 10 additions and 0 deletions

View File

@ -56,6 +56,10 @@
<head> <head>
<title>Tiny Tiny RSS</title> <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("lib/dijit/themes/claro/claro.css"); ?>
<?php echo stylesheet_tag("css/layout.css"); ?> <?php echo stylesheet_tag("css/layout.css"); ?>

View File

@ -111,6 +111,8 @@ function exception_error(location, e, ext_info) {
browserVersion: navigator.appVersion, browserVersion: navigator.appVersion,
browserPlatform: navigator.platform, browserPlatform: navigator.platform,
browserCookies: navigator.cookieEnabled, browserCookies: navigator.cookieEnabled,
ttrssVersion: __ttrss_version,
initParams: JSON.stringify(init_params),
}).toQueryString(); }).toQueryString();
document.forms['exceptionForm'].submit(); document.forms['exceptionForm'].submit();

View File

@ -32,6 +32,10 @@
<head> <head>
<title>Tiny Tiny RSS : <?php echo __("Preferences") ?></title> <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("lib/dijit/themes/claro/claro.css"); ?>
<?php echo stylesheet_tag("css/layout.css"); ?> <?php echo stylesheet_tag("css/layout.css"); ?>