From b07875f49909b2292e3b980f2e262dcfa49b8603 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 19 Jul 2010 20:28:55 +0200 Subject: also generate QR codes for text Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system') diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php index 76f4ba228..5678bd3d1 100644 --- a/system/application/models/file_mod.php +++ b/system/application/models/file_mod.php @@ -165,7 +165,7 @@ class File_mod extends Model { header("HTTP/1.1 304 Not Modified"); header('Etag: "'.$etag.'"'); } else { - if ($mode && $mode != 'plain' + if ($mode && $mode != 'plain' && $mode != 'qr' && $this->mime2extension($type) && filesize($file) <= $this->config->item('upload_max_text_size') ) { -- cgit v1.2.3-24-g4f1b