Skip to content

Instantly share code, notes, and snippets.

@dhoss
Created November 2, 2009 21:52
Show Gist options
  • Save dhoss/224497 to your computer and use it in GitHub Desktop.
Save dhoss/224497 to your computer and use it in GitHub Desktop.
--- lib/MT/Entry.pm 2009-11-02 21:51:37.000000000 +0000
+++ lib/MT/Entry.pm.orig 2009-11-02 21:51:02.000000000 +0000
@@ -311,8 +311,10 @@
);
}
-MT::Placement->add_trigger(post_save => \&flush_category_cache);
-MT::Placement->add_trigger(post_remove => \&flush_category_cache);
+MT::Placement->add_trigger(
+ post_save => \&flush_category_cache,
+ post_remove => \&flush_category_cache
+);
sub category {
my $entry = shift;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment