Changeset 14799

Show
Ignore:
Timestamp:
02/07/08 20:49:43 (10 months ago)
Author:
rambo
Message:

do not require SG specific conffile

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/support/normalize_midgard_whitespace.php

    r14798 r14799  
    88    echo "\nUsage: {$name} <configfile> <username> <password>\n"; 
    99    echo "  For example:\n"; 
    10     echo "  {$name} midgard_sgx 'sgadmin+sgname' 'adminpasswd' \n\n"; 
    11     echo "(you need to specify the MidgardUser and MidgardPassword\n in the midgard_sgx config file)\n\n"; 
     10    echo "  {$name} midgard 'sgadmin+sgname' 'adminpasswd' \n\n"; 
    1211    exit(1); 
    1312} 
     
    2120} 
    2221mgd_auth_midgard($username, $password); 
     22mgd_get_midgard(); 
     23// Workaround for neither mgd_auth_midgard or mgd_get_midgard updating $_MIDGARD['sitegroup'] 
     24$dummy = new midgard_page(); 
     25$_MIDGARD['sitegroup'] = $dummy->sitegroup; 
     26unset($dummy); 
    2327if (!$_MIDGARD['user']) 
    2428{