Changeset 5820 for trunk/core/lib/Foswiki/Plugin.pm
- Timestamp:
- 12/18/09 11:10:35 (2 years ago)
- File:
-
- 1 edited
-
trunk/core/lib/Foswiki/Plugin.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/lib/Foswiki/Plugin.pm
r5791 r5820 352 352 353 353 Find the web that has the topic for this plugin by searching the 354 {Plugins}{WebSearchPath} 354 {Plugins}{WebSearchPath}. Returns undef if $NO_PREFS_IN_TOPIC=1 355 355 356 356 =cut … … 359 359 my $this = shift; 360 360 361 unless ( $this->{topicWeb} ) {361 unless ( defined( $this->{topicWeb} ) || $this->{no_topic} ) { 362 362 363 363 # Find the plugin topic, if required … … 373 373 } 374 374 } 375 ASSERT( $this->{topicWeb}, $this->{name} ) if DEBUG; 376 } 377 return $this->{topicWeb}; 375 } 376 # If there is no web (probably because NO_PREFS_IN_TOPIC is set) 377 # then default to the system web name. 378 return $this->{topicWeb} || $Foswiki::cfg{SystemWebName}; 378 379 } 379 380
Note: See TracChangeset
for help on using the changeset viewer.
