Commit e0103d3a authored by Clemens John's avatar Clemens John

Allow lower cased and upper cased ApiMap apiMap

Signed-off-by: Clemens John's avatarClemens John <clemens.john@floh1111.de>
parent a4cf17dc
......@@ -5,7 +5,8 @@
class Api {
function __construct() {
if (isset($_REQUEST['class']) AND isset($_REQUEST['section'])) {
if($_REQUEST['class'] == 'apiMap' && method_exists($_REQUEST['class'], $_REQUEST['section'])) {
if(($_REQUEST['class'] == 'apiMap' || $_REQUEST['class'] == 'ApiMap') &&
method_exists($_REQUEST['class'], $_REQUEST['section'])) {
eval($_REQUEST['class']."::".$_REQUEST['section']."();");
} else {
echo "Class or section does not exist.";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment