[Rt-commit] r13834 - in rt/3.8/trunk: sbin
sartak at bestpractical.com
sartak at bestpractical.com
Mon Jul 7 14:27:09 EDT 2008
Author: sartak
Date: Mon Jul 7 14:27:09 2008
New Revision: 13834
Modified:
rt/3.8/trunk/ (props changed)
rt/3.8/trunk/sbin/rt-email-dashboards.in
Log:
r63780 at onn: sartak | 2008-07-07 14:25:37 -0400
email-dashboards: Use RT->Config->Get('WebURL') instead of $RT::WebURL. vverbose-log the actual component we end up running.
Modified: rt/3.8/trunk/sbin/rt-email-dashboards.in
==============================================================================
--- rt/3.8/trunk/sbin/rt-email-dashboards.in (original)
+++ rt/3.8/trunk/sbin/rt-email-dashboards.in Mon Jul 7 14:27:09 2008
@@ -405,8 +405,9 @@
my $original_uri = $uri;
verbose "Getting resource [_1]", $original_uri;
- # strip out RT::WebURL
- $uri =~ s/^\Q$RT::WebURL//;
+ # strip out WebURL, mason doesn't want it
+ my $weburl = RT->Config->Get('WebURL');
+ $uri =~ s/^\Q$weburl//;
# add a leading / if needed
$uri = "/$uri"
@@ -435,6 +436,7 @@
}
}
+ vverbose("Running component '$uri'");
$content = run_component($uri, %args);
$uri =~ s{^(.*/)(.*?)$}{$1};
More information about the Rt-commit
mailing list