correct trifles

This commit is contained in:
coderkun 2013-09-22 21:41:38 +02:00
parent 1779c38218
commit 23346a78b5
6 changed files with 3 additions and 33 deletions

View file

@ -20,34 +20,6 @@
*/
abstract class BottomlevelAgent extends \nre\core\Agent
{
/**
* Load a BottomlevelAgent.
*
* @throws AgentNotFoundException
* @throws AgentNotValidException
* @param string $agentName BottomlevelAgent name
*/
public static function load($agentName)
{
// Load class
parent::load_agent($agentName, Autoloader::getClassName(get_class()));
// Determine full classname
$className = Autoloader::concatClassNames($agentName, Autoloader::getClassType(get_class()));
// Validate class
try {
ClassLoader::check($className, get_class());
}
catch(ClassNotValidException $e) {
throw new AgentNotValidException($e->getClassName());
}
}
}
?>

View file

@ -299,7 +299,7 @@
// Determine prefix
$ppos = array(strlen($uri));
if(($p = strpos($uri, '/'.$request->getParam(1, \nre\configs\AppConfig::$defaults['intermediate']))) !== false) {
if(($p = strpos($uri, '/'.$request->getParam(1, 'intermediate'))) !== false) {
$ppos[] = $p;
}
$prefix = substr($uri, 0, min($ppos));

View file

@ -42,7 +42,6 @@
*/
function __construct($controllerName)
{
// Elternkonstruktor aufrufen
parent::__construct(
$controllerName,
self::MESSAGE,

View file

@ -42,7 +42,6 @@
*/
function __construct($controllerName)
{
// Elternkonstruktor aufrufen
parent::__construct(
$controllerName,
self::MESSAGE,

View file

@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta charset="utf-8" />
<title>Service Unavailable</title>
</head>

View file

@ -1,7 +1,7 @@
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L,NE]