Skip to content

Commit

Permalink
Item9487: nip incorrect usage of reload in the bud, before it can spr…
Browse files Browse the repository at this point in the history
…ead too far

git-svn-id: http://svn.foswiki.org/trunk/BibliographyPlugin@8572 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Aug 19, 2010
1 parent 407b34d commit ed6f56f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Foswiki/Plugins/BibliographyPlugin/Core.pm
Expand Up @@ -320,8 +320,7 @@ sub _getTopicObject {
my $topicObject;

if ( $Foswiki::Plugins::VERSION >= 2.1 ) {
$topicObject = Foswiki::Meta->new( $session, $web, $topic );
$topicObject->reload();
$topicObject = Foswiki::Meta->load( $session, $web, $topic );
if ( not $topicObject->haveAccess('VIEW') ) {
$topicObject->finish();
$topicObject = undef;
Expand Down

0 comments on commit ed6f56f

Please sign in to comment.