]> git.mxchange.org Git - friendica.git/commitdiff
insidious little parsing bug
authorfriendica <info@friendica.com>
Wed, 27 Jun 2012 05:32:07 +0000 (22:32 -0700)
committerfriendica <info@friendica.com>
Wed, 27 Jun 2012 05:32:07 +0000 (22:32 -0700)
boot.php
view/theme/slackr/birthdays_reminder.tpl

index 3d7e0c488ff0c5d6cbbcb8af7ac0324690b4ce64..c27b0baaab5b5ffbbdf4d799bda39b506dbbb8df 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1252,6 +1252,9 @@ if(! function_exists('get_birthdays')) {
                        '$event_reminders' => t('Birthday Reminders'),
                        '$event_title' => t('Birthdays this week:'),
                        '$events' => $r,
+                       '$lbr' => '{',  // raw brackets mess up if/endif macro processing
+                       '$rbr' => '}'
+
                ));
        }
 }
index 4a691dea3f574ff45e15fd8fce5938697b51c38e..1dc65295a9f2e28a7c2a05fcf017cb8bb68e9367 100644 (file)
@@ -1,5 +1,8 @@
+{{ if $classtoday }}
 <script>
-       $(document).ready(function() {
+       $(document).ready(function() $lbr
                $('#events-reminder').addClass($.trim('$classtoday'));
-       });
+       $rbr);
 </script>
+{{ endif }}
+