Skip to content

Commit

Permalink
configure is now called first and bib dir is loaded after [#10 state:…
Browse files Browse the repository at this point in the history
…resolved]
  • Loading branch information
Fabrice Luraine committed Jul 1, 2009
1 parent d23fdf0 commit 88838d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/limonade.php
Expand Up @@ -288,10 +288,13 @@ function run($env = null)
ini_set('display_errors', 1);
set_error_handler('error_handler_dispatcher', E_ALL ^ E_NOTICE);

# 2. Loading libs
# 2. Set user configuration
call_if_exists('configure');

# 3. Loading libs
require_once_dir(option('lib_dir'));

# 3. Set some default methods if needed
# 4. Set some default methods if needed
if(!function_exists('after'))
{
function after($output)
Expand All @@ -305,10 +308,7 @@ function route_missing($request_method, $request_uri)
{
halt(NOT_FOUND, "($request_method) $request_uri");
}
}

# 4. Set user configuration
call_if_exists('configure');
}

# 5. Check request
if($rm = request_method())
Expand Down

0 comments on commit 88838d1

Please sign in to comment.