From 5a6f3fda5295c28affae8160092986ca02b1f82b Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Tue, 11 May 2004 01:42:58 +0000 Subject: [PATCH] phptal doesn't require ini_set anymore --- config/index.php | 5 ----- includes/DefaultSettings.php | 9 --------- 2 files changed, 14 deletions(-) diff --git a/config/index.php b/config/index.php index a883d49db7..907856af73 100644 --- a/config/index.php +++ b/config/index.php @@ -237,11 +237,6 @@ $conf->IP = preg_replace( "/\\\\/","\\\\\\\\",$conf->IP ); // For Windows, \ -> chdir( "config" ); print "
  • Installation directory: " . htmlspecialchars( $conf->IP ) . "
  • \n"; -@$oldpath = ini_set( "include_path", ini_get( "include_path" ) ); -if( empty( $oldpath ) ) { - print "
  • Can't set include_path; new template layout will be disabled.
  • \n"; -} - # $conf->ScriptPath = "/~brion/inplace"; $conf->ScriptPath = preg_replace( '{^(.*)/config.*$}', '$1', $_SERVER["REQUEST_URI"] ); print "
  • Script URI path: " . htmlspecialchars( $conf->ScriptPath ) . "
  • \n"; diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index a9383a1955..e1fc890c55 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -318,16 +318,7 @@ $wgUseImageResize = false; $wgUseImageMagick = false; $wgImageMagickConvertCommand = "/usr/bin/convert"; -# PHPTal needs a PEAR directory in the include_path. If we can't change the -# include_path (such as on free.fr and other hosts) we may have to disable it. $wgUsePHPTal = true; -$pathchange = @ini_set( "include_path", "PHPTAL-NP-0.7.0/libs:" . ini_get("include_path") ); -if( empty( $pathchange ) ) { - # Can't fix path! User can manually enable it again if they put the files - # in an appropriate place. - $wgUsePHPTal = false; -} - if( !isset( $wgCommandLineMode ) ) { $wgCommandLineMode = false; -- 2.20.1