Permalink
Browse files

Don't forget to flush the relative_url_cache when updating the slug.

  • Loading branch information...
1 parent 98bcb95 commit d4998e37d859e4702407b9a85af6a8ac2fabe686 @bharat bharat committed Jan 29, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 modules/gallery/helpers/gallery_installer.php
@@ -479,6 +479,7 @@ static function upgrade($version) {
db::build()
->update("items")
->set("slug", $new_slug)
+ ->set("relative_url_cache", null)
->where("id", "=", $row->id)
->execute();
}

0 comments on commit d4998e3

Please sign in to comment.