aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2012-04-03 18:15:04 +0000
committerflop25 <flop25@piwigo.org>2012-04-03 18:15:04 +0000
commit7f9c121049211feb1019796cfee6084fa7a6fdd0 (patch)
treecdcd1be6139dd64bee5b682082921451b31b3e39 /include/template.class.php
parent3c68e2aee928fb476eace48dafeef550d0db95fd (diff)
orthographic correction
git-svn-id: http://piwigo.org/svn/trunk@13871 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/template.class.php')
-rw-r--r--include/template.class.php10
1 files 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');
}
}