Showing with 14 additions and 23,617 deletions.
  1. +2 −1 .gitignore
  2. +6 −0 api.php
  3. +0 −23,610 cache/phpbrowscap/browscap.ini
  4. +0 −5 cache/phpbrowscap/cache.php
  5. +5 −0 inc/BrowserInfo.php
  6. +1 −1 inc/WebRequest.php
@@ -1,4 +1,5 @@
.htaccess
.project
testswarm.ini
scripts/*.pl
scripts/*.pl
cache/*
@@ -19,6 +19,12 @@
require_once "inc/init.php";

$action = $swarmContext->getRequest()->getVal( "action", "info" );
if ( !$action ) {
// getVal will only fallback to "info" if "action" isn't set,
// if it is falsy, also use infno (we don't want to instantiate Action
// directly if it is an empty string
$action = "info";
}
$format = $swarmContext->getRequest()->getVal( "format", "json" );
$className = ucfirst( $action ) . "Action";
$className = class_exists( $className ) ? $className : null;