# HG changeset patch # User Dan # Date 1229858537 18000 # Node ID 5e85d7db8ee548b80089750db97a5c91bbc23fa7 # Parent 62fed244fa1c8718e191ccb96e1bd44c3d4c943c Merged WINDOWS_MOD_REWRITE_WORKAROUNDS changes from stable. diff -r 62fed244fa1c -r 5e85d7db8ee5 includes/constants.php --- a/includes/constants.php Sun Dec 21 04:26:56 2008 -0500 +++ b/includes/constants.php Sun Dec 21 06:22:17 2008 -0500 @@ -143,6 +143,8 @@ define('SEARCH_RESULTS_PER_PAGE', 10); define('MYSQL_MAX_PACKET_SIZE', 1048576); // 1MB; this is the default in MySQL 4.x I think define('ENANO_SUPPORT_AVATARS', 1); +// don't change this next line in upstream (it has to be auto-patched by the dynamic download script) +// define('WINDOWS_MOD_REWRITE_WORKAROUNDS', ''); // Sidebar diff -r 62fed244fa1c -r 5e85d7db8ee5 includes/paths.php --- a/includes/paths.php Sun Dec 21 04:26:56 2008 -0500 +++ b/includes/paths.php Sun Dec 21 06:22:17 2008 -0500 @@ -38,18 +38,19 @@ // DEFINE NAMESPACES HERE // The key names should NOT EVER be changed, or Enano will be very broken + $namespace_delimiter = ( defined('WINDOWS_MOD_REWRITE_WORKAROUNDS') ) ? '.' : ':'; $this->nslist = Array( - 'Article' =>'', - 'User' =>'User:', - 'File' =>'File:', - 'Help' =>'Help:', - 'Admin' =>'Admin:', - 'Special' =>'Special:', - 'System' =>'Enano:', - 'Template'=>'Template:', - 'Category'=>'Category:', - 'API'=>'SystemAPI:', - 'Project' =>sanitize_page_id(getConfig('site_name')).':', + 'Article' => '', + 'User' => 'User' . $namespace_delimiter, + 'File' => 'File' . $namespace_delimiter, + 'Help' => 'Help' . $namespace_delimiter, + 'Admin' => 'Admin' . $namespace_delimiter, + 'Special' => 'Special' . $namespace_delimiter, + 'System' => 'Enano' . $namespace_delimiter, + 'Template' => 'Template' . $namespace_delimiter, + 'Category' => 'Category' . $namespace_delimiter, + 'API' => 'SystemAPI' . $namespace_delimiter, + 'Project' => sanitize_page_id(getConfig('site_name')) . $namespace_delimiter, ); // ACL types diff -r 62fed244fa1c -r 5e85d7db8ee5 install/includes/stages/website.php --- a/install/includes/stages/website.php Sun Dec 21 04:26:56 2008 -0500 +++ b/install/includes/stages/website.php Sun Dec 21 06:22:17 2008 -0500 @@ -147,8 +147,34 @@ $scriptpath_full = 'http' . ( $https ? 's' : '' ) . '://' . $_SERVER['HTTP_HOST'] . scriptPath . '/'; ?> + +
+ +