Changeset 1380 for branches/mt4.11/lib/MT/Core.pm
- Timestamp:
- 02/20/08 20:46:49 (22 months ago)
- Files:
-
- 1 modified
-
branches/mt4.11/lib/MT/Core.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/mt4.11/lib/MT/Core.pm
r1377 r1380 499 499 'PerformanceLogging' => { default => 0 }, 500 500 'PerformanceLoggingThreshold' => { default => 0.1 }, 501 'PerformanceLoggingPath' => { handler => \&PerformanceLoggingPath }, 501 502 'ProcessMemoryCommand' => { handler => \&ProcessMemoryCommand }, 502 503 }, … … 797 798 require MT::WeblogPublisher; 798 799 return MT::WeblogPublisher->core_archive_types; 800 } 801 802 sub PerformanceLoggingPath { 803 my $cfg = shift; 804 $cfg->set_internal( 'PerformanceLoggingPath', @_ ) if @_; 805 my $path = $cfg->get_internal('PerformanceLoggingPath'); 806 unless (defined $path) { 807 require File::Spec; 808 $path = File::Spec->catdir( MT->instance->static_file_path, 809 'support', 'logs'); 810 $cfg->set_internal('PerformanceLoggingPath', $path); 811 } 812 return $path; 799 813 } 800 814
