Changeset 3374
- Timestamp:
- 04/05/09 15:26:17 (4 years ago)
- File:
-
- 1 edited
-
trunk/core/lib/Foswiki.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/lib/Foswiki.pm
r3363 r3374 2430 2430 my $memWeb = $this->{prefs}->getPreference('WEB'); 2431 2431 2432 # Historically this couldn't be called on web objects. 2433 my $webContext = $topicObject->web || $this->{webName}; 2434 my $topicContext = $topicObject->topic || $this->{topicName}; 2435 2432 2436 $this->{prefs}->setInternalPreferences( 2433 TOPIC => $topic Object->topic,2434 WEB => $ topicObject->web2437 TOPIC => $topicContext, 2438 WEB => $webContext 2435 2439 ); 2436 2440 … … 2795 2799 $text = $this->renderer->takeOutBlocks( $text, 'verbatim', $verbatim ); 2796 2800 2801 # Require defaults for plugin handlers :-( 2802 my $webContext = $topicObject->web || $this->{webName}; 2803 my $topicContext = $topicObject->topic || $this->{topicName}; 2804 2797 2805 my $memW = $this->{prefs}->getPreference('INCLUDINGWEB'); 2798 2806 my $memT = $this->{prefs}->getPreference('INCLUDINGTOPIC'); 2799 2807 $this->{prefs}->setInternalPreferences( 2800 INCLUDINGWEB => $ topicObject->web,2801 INCLUDINGTOPIC => $topic Object->topic2808 INCLUDINGWEB => $webContext, 2809 INCLUDINGTOPIC => $topicContext 2802 2810 ); 2803 2811 … … 2807 2815 2808 2816 # Plugin Hook 2809 $this->{plugins}->dispatch( 'commonTagsHandler', $text, $topicObject->topic, 2810 $topicObject->web, 0, $topicObject ); 2817 $this->{plugins}->dispatch( 2818 'commonTagsHandler', $text, 2819 $topicContext, 2820 $webContext, 2821 0, $topicObject ); 2811 2822 2812 2823 # process tags again because plugin hook may have added more in … … 2833 2844 # Foswiki Plugin Hook (for cache Plugins only) 2834 2845 $this->{plugins} 2835 ->dispatch( 'afterCommonTagsHandler', $text, $topic Object->topic,2836 $ topicObject->web, $topicObject );2846 ->dispatch( 'afterCommonTagsHandler', $text, $topicContext, 2847 $webContext, $topicObject ); 2837 2848 2838 2849 return $text;
Note: See TracChangeset
for help on using the changeset viewer.
