Add CP version by default in logs

This commit is contained in:
Ruud
2014-05-31 22:09:18 +02:00
parent 9ccd4a5e84
commit 84a7cfe07d
+5 -2
View File
@@ -17,7 +17,7 @@ Page.Log = new Class({
Movie(s) I have this with: ...\n\
Quality of the movie being searched: ...\n\
Providers I use: ...\n\
Version of CouchPotato: ...\n\
Version of CouchPotato: {version}\n\
Running on: ...\n\
\n\
### Logs:\n\
@@ -207,7 +207,10 @@ Running on: ...\n\
showReport: function(text){
var self = this,
body = self.report_text.replace('{issue}', text);
version = Updater.getInfo(),
body = self.report_text
.replace('{issue}', text)
.replace('{version}', version ? version.version.repr : '...');
var overlay = new Element('div.report', {
'method': 'post',