Parcourir la source

tmx: added note to t_continue() docs about failure context of executed route block

Daniel-Constantin Mierla il y a 8 ans
Parent
commit
29635011f9
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 10 0
      modules/tmx/doc/tmx_admin.xml

+ 10 - 0
modules/tmx/doc/tmx_admin.xml

@@ -379,6 +379,11 @@ if(t_suspend())
 				pseudo-variables.
 				pseudo-variables.
 			</para></listitem>
 			</para></listitem>
 		</itemizedlist>
 		</itemizedlist>
+		<para>
+			Important note: the route[rtname] is executed in the context of
+			a failure (same behaviour for functions as they were used in a
+			failure_route block).
+		</para>
 		<para>
 		<para>
 		This function can be used in ANY_ROUTE.
 		This function can be used in ANY_ROUTE.
 		</para>
 		</para>
@@ -388,6 +393,11 @@ if(t_suspend())
 ...
 ...
 t_continue('123', '456', 'MYROUTE');
 t_continue('123', '456', 'MYROUTE');
 ...
 ...
+route[MYROUTE] {
+  xlog("executed by t continue\n");
+  ...
+}
+...
 </programlisting>
 </programlisting>
 		</example>
 		</example>
 	</section>
 	</section>