Changeset 2434

Show
Ignore:
Timestamp:
09/03/08 03:50:25 (3 months ago)
Author:
bjohnson
Message:

schema06: Set the default timezone in index.php. Also, commenting out an ACL check in adminhandler until we have rewritten the ACL class to work with the new schema.

Location:
branches/schema06
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/schema06/index.php

    r2211 r2434  
    125125    // Set the default locale. 
    126126    Locale::set( isset($locale) ? $locale : 'en-us' ); 
     127 
     128    Locale::set_timezone( isset($timezone) ? $timezone : 'UTC' ); 
    127129     
    128130    if ( !defined( 'DEBUG' ) ) define( 'DEBUG', false ); 
     
    154156{ 
    155157    Locale::set( 'en-us' ); 
     158    Locale::set_timezone( 'UTC' ); 
     159 
    156160    if ( !defined( 'DEBUG' ) ) define( 'DEBUG', false ); 
    157161    // The configuration file does not exist. 
  • branches/schema06/system/classes/adminhandler.php

    r2408 r2434  
    3737            exit; 
    3838        } 
     39        /* TODO: update ACL class so that this works 
    3940        if ( !$user->can( 'admin' ) ) { 
    4041            die( _t( 'Permission denied.' ) ); 
    41         } 
     42        }*/ 
    4243        $last_form_data= Session::get_set( 'last_form_data' ); // This was saved in the "if ( !$user )" above, UserHandler transferred it properly. 
    4344        /* At this point, Controller has not created handler_vars, so we have to modify $_POST/$_GET. */