Skip to content

Commit

Permalink
Item670: need to explicitly load TWiki module to make sure its ready …
Browse files Browse the repository at this point in the history
…for plugins that assume its already there :/

git-svn-id: http://svn.foswiki.org/trunk@1776 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Jan 6, 2009
1 parent 8e9d37a commit 5ed6784
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -91,6 +91,7 @@ sub earlyInitPlugin {

# Load TWiki::Func and TWiki::Plugins, for badly written plugins
# which rely on them being there without using them first
use TWiki;
use TWiki::Func;
use TWiki::Plugins;

Expand Down Expand Up @@ -121,8 +122,8 @@ sub augmentedTemplatePath {
---++ postRenderingHandler( $text )
* =$text= - the text that has just been rendered. May be modified in place.
using the same simplistic mechanism as DistributedServersPlugin, we find all
the System and TWiki web pub URL's and make sure they actually exist. If not,
using the same simplistic mechanism as DistributedServersPlugin, we find all
the System and TWiki web pub URL's and make sure they actually exist. If not,
we look in the 'other' place, and modify them if that file does exist.
* TODO: should really protect non-HTML src type url's from re-writing
Expand All @@ -145,7 +146,7 @@ sub validatePubURL {
print STDERR "validatePubURL($pubUrl, $web, $file)\n";
my %map = ('TWiki' => $Foswiki::cfg{SystemWebName},
$Foswiki::cfg{SystemWebName} => 'TWiki');

#TODO: make into a hash - and see if we can persist it for fastcgi etc..
my $filePath = $Foswiki::cfg{PubDir}.'/'.$web.$file;
unless (-e $filePath) {
Expand Down

0 comments on commit 5ed6784

Please sign in to comment.