summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-10-05 18:01:01 +0200
committerczaks <marcin@6irc.net>2014-10-05 18:01:01 +0200
commit1964279436f61e56e6b138b64d9d4f6e476fdc02 (patch)
tree35bb55d662e39c755d5043bcad6d2fd1cf7f0943 /inc
parent1e1a73c4b40d07ab74f774cd3905980c0635eedd (diff)
parent3f652ce9ad3a50c49cda6bac939ad05bb6cbe8c8 (diff)
Merge branch 'master' of github.com:vichan-devel/Tinyboard
Conflicts: stylesheets/style.css
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php12
-rw-r--r--inc/mod/pages.php6
2 files changed, 12 insertions, 6 deletions
diff --git a/inc/config.php b/inc/config.php
index e2cc2ebd..1a75cad0 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -529,6 +529,9 @@
// When true, users are instead presented a selectbox for email. Contains, blank, noko and sage.
$config['field_email_selectbox'] = false;
+ // When true, the sage won't be displayed
+ $config['hide_sage'] = false;
+
// Attach country flags to posts.
$config['country_flags'] = false;
@@ -1046,10 +1049,11 @@
$config['error']['unknownext'] = _('Unknown file extension.');
$config['error']['filesize'] = _('Maximum file size: %maxsz% bytes<br>Your file\'s size: %filesz% bytes');
$config['error']['maxsize'] = _('The file was too big.');
- $config['error']['webmerror'] = _('There was a problem processing your webm.');
- $config['error']['invalidwebm'] = _('Invalid webm uploaded.');
- $config['error']['webmhasaudio'] = _('The uploaded webm contains an audio or another type of additional stream.');
- $config['error']['webmtoolong'] = _('The uploaded webm is longer than ' . $config['webm']['max_length'] . ' seconds.');
+ $config['error']['genwebmerror'] = _('There was a problem processing your webm.');
+ $config['error']['webmerror'] = _('There was a problem processing your webm.');//Is this error used anywhere ?
+ $config['error']['invalidwebm'] = _('Invalid webm uploaded.');
+ $config['error']['webmhasaudio'] = _('The uploaded webm contains an audio or another type of additional stream.');
+ $config['error']['webmtoolong'] = _('The uploaded webm is longer than ' . $config['webm']['max_length'] . ' seconds.');
$config['error']['fileexists'] = _('That file <a href="%s">already exists</a>!');
$config['error']['fileexistsinthread'] = _('That file <a href="%s">already exists</a> in this thread!');
$config['error']['delete_too_soon'] = _('You\'ll have to wait another %s before deleting that.');
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index c21086ed..36dec7bb 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -1567,10 +1567,12 @@ function mod_spoiler_image($board, $post, $file) {
$result = $query->fetch(PDO::FETCH_ASSOC);
$files = json_decode($result['files']);
+
+ $size_spoiler_image = @getimagesize($config['spoiler_image']);
file_unlink($board . '/' . $config['dir']['thumb'] . $files[$file]->thumb);
$files[$file]->thumb = 'spoiler';
- $files[$file]->thumbheight = 128;
- $files[$file]->thumbwidth = 128;
+ $files[$file]->thumbwidth = $size_spoiler[0];
+ $files[$file]->thumbheight = $size_spoiler_image[1];
// Make thumbnail spoiler
$query = prepare(sprintf("UPDATE ``posts_%s`` SET `files` = :files WHERE `id` = :id", $board));