Skip to content

Commit

Permalink
add:
Browse files Browse the repository at this point in the history
Liber update.
  • Loading branch information
djalmaoliveira committed Dec 24, 2012
1 parent 9e5d528 commit bca137b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 518 deletions.
4 changes: 2 additions & 2 deletions app/Liber/Liber.php
Expand Up @@ -39,7 +39,7 @@ class Liber {
/**
* Framework version
*/
const VERSION = '1.2.6';
const VERSION = '1.2.10';


/**
Expand Down Expand Up @@ -186,7 +186,7 @@ public static function loadApp( $path ) {
// prepare the enviroment
//
self::$aConfig['APP_ROOT'] = dirname($_SERVER['SCRIPT_FILENAME']).DIRECTORY_SEPARATOR;
self::$aConfig['APP_URL'] = ((self::isSSL())?'https':'http').'://'.$_SERVER['HTTP_HOST'].str_replace('//','/', dirname($_SERVER['SCRIPT_NAME']).'/') ;
self::$aConfig['APP_URL'] = ((self::isSSL())?'https':'http').'://'.$_SERVER['SERVER_NAME'].str_replace('//','/', dirname($_SERVER['SCRIPT_NAME']).'/') ;

if ( self::$aConfig['APP_MODE'] == 'DEV' ) {
error_reporting(-1);
Expand Down

0 comments on commit bca137b

Please sign in to comment.