Bugs solved

This commit is contained in:
Juan Ferrer Toribio 2017-12-20 17:18:57 +01:00
parent f4372f8f5c
commit a861946412
5 changed files with 5 additions and 5 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.405.56) stable; urgency=low
hedera-web (1.405.57) stable; urgency=low
* Initial Release.

View File

@ -56,7 +56,7 @@ module.exports = new Class
this.$('social-bar').conn = this._conn;
var sql = 'SELECT nickname FROM account.userView;'
+'SELECT default_form, image_host FROM config;'
+'SELECT default_form FROM config;'
+'SELECT url FROM imageConfig;'
+'SELECT production_domain, test_domain FROM config;';
this._conn.execQuery (sql, this.onMainQueryDone.bind (this));

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.405.56",
"version": "1.405.57",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -82,7 +82,7 @@ class Thumb extends Vn\Web\RestRequest
// Sends the thumb to the client
$useXsendfile = $db->getValue ('SELECT use_xsendfile FROM image_config');
$useXsendfile = $db->getValue ('SELECT useXsendfile FROM imageConfig');
if ($useXsendfile)
{

View File

@ -72,7 +72,7 @@ class Upload extends Vn\Web\JsonRequest
throw new Lib\Exception (s($message));
}
$maxSize = $db->getValue ('SELECT max_size FROM image_config');
$maxSize = $db->getValue ('SELECT maxSize FROM imageConfig');
if ($_FILES['image']['size'] > $maxSize * 1048576)
throw new UserException (sprintf (s('File size error'), $maxSize));