correct trifles

This commit is contained in:
coderkun 2013-09-22 21:41:38 +02:00
commit 0503b85c28
6 changed files with 3 additions and 33 deletions

View file

@ -20,34 +20,6 @@
*/ */
abstract class BottomlevelAgent extends \nre\core\Agent 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 // Determine prefix
$ppos = array(strlen($uri)); $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; $ppos[] = $p;
} }
$prefix = substr($uri, 0, min($ppos)); $prefix = substr($uri, 0, min($ppos));

View file

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

View file

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

View file

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

View file

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