From: <mp...@kr...> - 2013-10-21 17:51:56
|
Revision: 6922 Author: mpeters Date: 2013-10-21 13:51:49 -0400 (Mon, 21 Oct 2013) Log Message: ----------- Preview URL returned by Krang::Publisher::preview_story is now the same as Krang::Story::preview_url Modified Paths: -------------- trunk/krang/docs/changelog.pod trunk/krang/lib/Krang/Publisher.pm Modified: trunk/krang/docs/changelog.pod =================================================================== --- trunk/krang/docs/changelog.pod 2013-10-21 17:30:25 UTC (rev 6921) +++ trunk/krang/docs/changelog.pod 2013-10-21 17:51:49 UTC (rev 6922) @@ -8,6 +8,10 @@ =item * +Preview URL returned by Krang::Publisher::preview_story is now the same as Krang::Story::preview_url [Michael Peters] + +=item * + Upgraded HTML::Template for bug fixes (2.91 -> 2.95) [Michael Peters] =item * Modified: trunk/krang/lib/Krang/Publisher.pm =================================================================== --- trunk/krang/lib/Krang/Publisher.pm 2013-10-21 17:30:25 UTC (rev 6921) +++ trunk/krang/lib/Krang/Publisher.pm 2013-10-21 17:51:49 UTC (rev 6922) @@ -310,9 +310,7 @@ $self->_clear_asset_lists() unless ($keep_asset_list); - my $preview_url = catfile($story->preview_url, $self->story_filename(story => $story)); - - return $preview_url; + return $story->preview_url; } =item C<< $publisher->publish_story(story => $story, callback => \%onpublish) >> |