From: Owen Leonard Date: Mon, 19 Aug 2013 14:55:52 +0000 (-0400) Subject: Bug 8670 - Update POD of C4::Branch::GetBranches() to use TT syntax X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=7ae3ea68579b3f870d7e42968c3727ecffac7f02;p=koha.git Bug 8670 - Update POD of C4::Branch::GetBranches() to use TT syntax This patch updates the example template syntax in the POD for C4::Branch::GetBranches() to use Template Toolkit syntax. To test, view the POD for C4::Branch::GetBranches() and confirm that it looks correct. Signed-off-by: Magnus Enger Checked the POD with "perldoc C4/Branch.pm" before and after applying the patch. The example now uses TT syntax, and looks sensible. Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- diff --git a/C4/Branch.pm b/C4/Branch.pm index 8b7677100c..108f24fdf3 100644 --- a/C4/Branch.pm +++ b/C4/Branch.pm @@ -90,11 +90,15 @@ Create a branch selector with the following code. =head3 in TEMPLATE - + + [% FOREACH branchloo IN branchloop %] + [% IF ( branchloo.selected ) %] + + [% ELSE %] + + [% END %] + [% END %] =head4 Note that you often will want to just use GetBranchesLoop, for exactly the example above.