diff --git a/debian/changelog b/debian/changelog index a8002a0a..5828b745 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.405.56) stable; urgency=low +hedera-web (1.405.57) stable; urgency=low * Initial Release. diff --git a/js/hedera/gui.js b/js/hedera/gui.js index f1489792..4b98622f 100644 --- a/js/hedera/gui.js +++ b/js/hedera/gui.js @@ -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)); diff --git a/package.json b/package.json index 41ca0a0f..90c44e41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "1.405.56", + "version": "1.405.57", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/rest/image/thumb.php b/rest/image/thumb.php index 29416e94..2fad4584 100644 --- a/rest/image/thumb.php +++ b/rest/image/thumb.php @@ -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) { diff --git a/rest/image/upload.php b/rest/image/upload.php index 5f76cde3..2d88cf18 100644 --- a/rest/image/upload.php +++ b/rest/image/upload.php @@ -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));