[Rt-commit] r11930 - rt/branches/3.8-TESTING/lib

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Apr 28 20:19:29 EDT 2008


Author: sunnavy
Date: Mon Apr 28 20:19:29 2008
New Revision: 11930

Modified:
   rt/branches/3.8-TESTING/lib/RT.pm.in

Log:
use EtcPath to detect if relative or not, BasePath is not good for this since it's absolute nearly all the time

Modified: rt/branches/3.8-TESTING/lib/RT.pm.in
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT.pm.in	(original)
+++ rt/branches/3.8-TESTING/lib/RT.pm.in	Mon Apr 28 20:19:29 2008
@@ -89,7 +89,7 @@
 our $MasonSessionDir = '@MASON_SESSION_PATH@';
 
 # XXX TODO is there a better way to detect if path is relative or not?
-unless ( $BasePath && $BasePath =~ m{^/} ) {
+unless ( $EtcPath && $EtcPath =~ m{^/} ) {
     my $pm_path = ( File::Spec->splitpath( $INC{'RT.pm'} ) )[1];
 
     # need rel2abs here is to make sure path is absolute, since $INC{'RT.pm'}


More information about the Rt-commit mailing list