Skip to content

Commit

Permalink
app becomes parse_request
Browse files Browse the repository at this point in the history
  • Loading branch information
juliend2 committed Sep 1, 2012
1 parent 310ae41 commit 5274d54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
include 'controllers/things_controller.php';
include 'settings/config.php';

list($status, $headers, $body) = app($config, array(
list($status, $headers, $body) = parse_request($config, array(
'get'=>$_GET,
'post'=>$_POST,
'files'=>$_FILES
Expand Down
2 changes: 1 addition & 1 deletion lib/framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* returns a response array : status (Integer), headers (Hash) and body (String)
*/
function app($config, $request) {
function parse_request($config, $request) {
// perform the action routing:
$uri = isset($request['get']['uri']) ? $request['get']['uri'] : '/';
if (isset($config['routes']) && isset($config['routes'][$uri])) {
Expand Down

0 comments on commit 5274d54

Please sign in to comment.