can't we all just get along (with RT 3.8.7)?
[freeside.git] / rt / etc / RT_SiteConfig.pm
index affd36b..513d2c4 100644 (file)
 
 #Set( $rtname, 'example.com');
 
-$RT::rtname = '%%%RT_DOMAIN%%%';
-$RT::Organization = '%%%RT_DOMAIN%%%';
+# These settings should have been inserted by the initial Freeside install.
+# Sometimes you may want to change domain, timezone, or freeside::URL later,
+# everything else should probably stay untouched.
 
-$RT::Timezone = '%%%RT_TIMEZONE%%%';
+Set($rtname, '%%%RT_DOMAIN%%%');
+Set($Organization, '%%%RT_DOMAIN%%%');
 
-$RT::WebBaseURL = '';
-$RT::WebPath = '/freeside/rt';
+Set($Timezone, '%%%RT_TIMEZONE%%%');
 
-$RT::WebExternalAuth = 1;
-$RT::WebFallbackToInternal = 1; #no
-$RT::WebExternalAuto = 1;
+Set($WebExternalAuth, 1);
+Set($WebFallbackToInternal, 1); #no
+Set($WebExternalAuto, 1);
 
 $RT::URI::freeside::IntegrationType = 'Internal';
 $RT::URI::freeside::URL = '%%%FREESIDE_URL%%%';
 
+$RT::URI::freeside::URL =~ m(^(https?://[^/]+)(/.*)$)i;
+Set($WebBaseURL, $1);
+Set($WebPath, "$2/rt");
+
 Set($DatabaseHost   , '');
 
-#perl 5.8.0 - 5.8.2 experiment
-#@EmailInputEncodings = qw(iso-8859-1 us-ascii utf-8); # unless (@EmailInputEncodings);
-#Set($EmailOutputEncoding , 'iso-8859-1');
+# These settings are user-editable.
+
+#old, RT 3.4 style (deprecated, useless):
+#$RT::MyTicketsLength = 10;
+#NEW, RT 3.6 style (uncomment to use):
+#Set($DefaultSummaryRows, 10);
+
+#does this do anything in RT 3.8??
+Set($QuickCreateLong, 0); #set to true to cause quick ticket creation to
+                          #redirect to the "long" ticket creation screen
+                          #instead of just creating a ticket with the subject.
+
+Set($MessageBoxWidth, 80);
 
+#Set(@Plugins,(qw(Extension::QuickDelete RT::FM)));
 1;