From f50f09756a65b32eb4e0fa639f80b3ffb9f1854a Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Fri, 13 Jun 2008 15:16:45 +0000 Subject: [PATCH] removed fixUrl workaround for Gallery. added AssetManager to WebGUI.conf.original --- etc/WebGUI.conf.original | 1 + lib/WebGUI/Asset/File/GalleryFile.pm | 5 ----- lib/WebGUI/Asset/Wobject/GalleryAlbum.pm | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/etc/WebGUI.conf.original b/etc/WebGUI.conf.original index 0fa7fc8ee..c2aaf2616 100644 --- a/etc/WebGUI.conf.original +++ b/etc/WebGUI.conf.original @@ -474,6 +474,7 @@ "contentHandlers" : [ "WebGUI::Content::Prefetch", "WebGUI::Content::Maintenance", + "WebGUI::Content::AssetManager", "WebGUI::Content::Operation", "WebGUI::Content::Setup", "WebGUI::Content::Shop", diff --git a/lib/WebGUI/Asset/File/GalleryFile.pm b/lib/WebGUI/Asset/File/GalleryFile.pm index 33069ce91..2ef9e7c5c 100644 --- a/lib/WebGUI/Asset/File/GalleryFile.pm +++ b/lib/WebGUI/Asset/File/GalleryFile.pm @@ -674,11 +674,6 @@ sub processPropertiesFromFormPost { } ); } - # Fix URLs - $self->update( { - url => $self->getParent->get( "url" ) . '/' . $self->session->url->urlize( $self->get( "menuTitle" ) ) - } ); - $self->requestAutoCommit; return; diff --git a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm index 9fb5a17a5..f795a6026 100644 --- a/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm +++ b/lib/WebGUI/Asset/Wobject/GalleryAlbum.pm @@ -649,10 +649,6 @@ sub processPropertiesFromFormPost { return $errors if @$errors; ### Passes all checks - # Fix URLs - $self->update( { - url => $self->getParent->get( "url" ) . '/' . $self->session->url->urlize( $self->get( "menuTitle" ) ) - } ); $self->requestAutoCommit; }