Skip to content

Commit

Permalink
Item11356: address objects mightn't have web parts
Browse files Browse the repository at this point in the history
('root' object); also, TRACE2 wasn't showing string to be parsed

git-svn-id: http://svn.foswiki.org/trunk@13452 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Dec 17, 2011
1 parent b373e4f commit 6fa09e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/lib/Foswiki/Address.pm
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ sub new {
my $this;

if ( $opts{string} ) {
ASSERT( not $opts{topic} or ( $opts{webpath} and $opts{topic} ) )
if DEBUG;
#ASSERT( not $opts{topic} or ( $opts{webpath} and $opts{topic} ) )
# if DEBUG;

# $this->{parseopts} = {
# web => $opts{web},
Expand Down Expand Up @@ -503,6 +503,7 @@ and resolved.
sub parse {
my ( $this, $path, %opts ) = @_;

print STDERR "parse(): parsing '$path'\n" if TRACE2;
$this->_invalidate();
if ( not $this->{parseopts} ) {
$this->{parseopts} = {
Expand Down

0 comments on commit 6fa09e5

Please sign in to comment.