source: locker/deploy/mediawiki-1.11.0/mediawiki-1.11.0.patch @ 452

Last change on this file since 452 was 452, checked in by quentin, 15 years ago
Make directories for each package
File size: 1.4 KB
  • AdminSettings.php

    diff -Nur mediawiki-1.11.0.old/AdminSettings.php mediawiki-1.11.0/AdminSettings.php
    old new  
     1<?php
     2/**
     3 * On scripts.mit.edu, the user's sole account can be used
     4 * both for regular operation of the wiki and for any
     5 * maintenance.  Therefore, we just use the username and
     6 * password already set in LocalSettings.php.
     7 *
     8 * @package MediaWiki
     9 */
     10         
     11$wgDBadminuser      = $wgDBuser;
     12$wgDBadminpassword  = $wgDBpassword;
     13         
     14/*
     15 * Whether to enable the profileinfo.php script.
     16 * (False is the default.)
     17 */
     18$wgEnableProfileInfo = false;
     19         
     20?>
  • includes/Setup.php

    diff -Nur mediawiki-1.11.0.old/includes/Setup.php mediawiki-1.11.0/includes/Setup.php
    old new  
    188188wfProfileIn( $fname.'-SetupSession' );
    189189
    190190if ( $wgDBprefix ) {
    191         $wgCookiePrefix = $wgDBname . '_' . $wgDBprefix;
     191        $wgCookiePrefix = str_replace("+", "", $wgDBname . '_' . $wgDBprefix);
    192192} elseif ( $wgSharedDB ) {
    193193        $wgCookiePrefix = $wgSharedDB;
    194194} else {
    195         $wgCookiePrefix = $wgDBname;
     195        $wgCookiePrefix = str_replace("+", "", $wgDBname);
    196196}
    197197$wgCookiePrefix = strtr($wgCookiePrefix, "=,; +.\"'\\[", "__________");
    198198
Note: See TracBrowser for help on using the repository browser.