Index: lib/eztemplate/classes/eztemplatedeffunction.php
===================================================================
--- lib/eztemplate/classes/eztemplatedeffunction.php	(révision 8788)
+++ lib/eztemplate/classes/eztemplatedeffunction.php	(copie de travail)
@@ -143,6 +143,10 @@
      */
     function process( &$tpl, &$textElements, $functionName, $functionChildren, $functionParameters, $functionPlacement, $rootNamespace, $currentNamespace )
     {
+        $fileName = $functionPlacement[2];
+        $line     = $functionPlacement[0][0];
+        $col      = $functionPlacement[0][1];
+
         $undef = ( $functionName == EZ_TEMPLATE_UNDEF_FUNCTION_NAME ) ? true : false;
 
         if ( $undef && !count( $functionParameters ) ) // if {undef} called w/o arguments
@@ -161,7 +165,7 @@
             if ( $undef ) // {undef}
             {
                 if ( !$tpl->hasLocalVariable( $varName, $rootNamespace ) )
-                    $tpl->warning( EZ_TEMPLATE_UNDEF_FUNCTION_NAME, "Variable '$varName' is not defined with {def}." );
+                    $tpl->warning( EZ_TEMPLATE_UNDEF_FUNCTION_NAME, "Variable '$varName' is not defined with {def} in $fileName : $line [$col]." );
                 else
                     $tpl->unsetLocalVariable( $varName, $rootNamespace );
 
@@ -171,7 +175,7 @@
                 if ( $tpl->hasVariable( $varName, $rootNamespace ) ) // if the variable already exists
                 {
                     // we don't create new variable but just assign value to the existing one.
-                    $tpl->warning( EZ_TEMPLATE_DEF_FUNCTION_NAME, "Variable '$varName' is already defined." );
+                    $tpl->warning( EZ_TEMPLATE_DEF_FUNCTION_NAME, "Variable '$varName' is already defined in $fileName : $line [$col]." );
                     $tpl->setVariable( $varName, $varValue, $rootNamespace );
                 }
                 else
