From 7f9c121049211feb1019796cfee6084fa7a6fdd0 Mon Sep 17 00:00:00 2001 From: flop25 Date: Tue, 3 Apr 2012 18:15:04 +0000 Subject: [PATCH] orthographic correction git-svn-id: http://piwigo.org/svn/trunk@13871 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/template.class.php b/include/template.class.php index c75c67fb6..3b585c199 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -549,15 +549,15 @@ class Template { function func_define_derivative($params, &$smarty) { - !empty($params['name']) or fatal_error('define_derviative missing name'); + !empty($params['name']) or fatal_error('define_derivative missing name'); if (isset($params['type'])) { $derivative = ImageStdParams::get_by_type($params['type']); $smarty->assign( $params['name'], $derivative); return; } - !empty($params['width']) or fatal_error('define_derviative missing width'); - !empty($params['height']) or fatal_error('define_derviative missing height'); + !empty($params['width']) or fatal_error('define_derivative missing width'); + !empty($params['height']) or fatal_error('define_derivative missing height'); $w = intval($params['width']); $h = intval($params['height']); @@ -579,9 +579,9 @@ class Template { if ($crop) { $minw = empty($params['min_width']) ? $w : intval($params['min_width']); - $minw <= $w or fatal_error('define_derviative invalid min_width'); + $minw <= $w or fatal_error('define_derivative invalid min_width'); $minh = empty($params['min_height']) ? $h : intval($params['min_height']); - $minh <= $h or fatal_error('define_derviative invalid min_height'); + $minh <= $h or fatal_error('define_derivative invalid min_height'); } }