Skip to content
This repository has been archived by the owner on Oct 13, 2019. It is now read-only.

Commit

Permalink
fix/ajax-autoloader
Browse files Browse the repository at this point in the history
  • Loading branch information
Stoyvo committed Mar 31, 2015
1 parent 24c5278 commit 5c5fd20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ajax.php
Expand Up @@ -17,7 +17,7 @@
$type = (!empty($_GET['type']) ? $_GET['type'] : $_POST['type']);
$action = (!empty($_GET['action']) ? $_GET['action'] : $_POST['action']);

$type = ucwords(strtolower($type));
$type = str_replace(' ', '', lcfirst(ucwords(str_replace('-', ' ', strtolower($type)))));
$action = str_replace(' ', '', lcfirst(ucwords(str_replace('-', ' ', strtolower($action)))));

// If we're not posting, it's a get function
Expand Down

0 comments on commit 5c5fd20

Please sign in to comment.