Skip to content
Snippets Groups Projects
Commit 5c306088 authored by Stein Magne Bjorklund's avatar Stein Magne Bjorklund
Browse files

Replace <tt> HTML element

- HTML element deprecated should no longer be used.
- Generic reformatting.
parent c6f46547
No related branches found
No related tags found
1 merge request!14Resolve "Fully introduce namespace"
......@@ -84,23 +84,28 @@ $localUri = $conf['basedir'].$_GET['q'];
$uri = Utils::getMirroredUri($localUri);
//Modules
foreach($conf['modules']['available'] as $i){
$className = $i.'Module';
$currentModule = $conf['modules']['directory'].$className.'.php';
if(!is_file($currentModule)){
HTTPStatus::send500("<br/>Can't load or error in module <tt>".$currentModule."</tt>" );
//Load Loadspeakr modules.
foreach($conf['modules']['available'] as $i) {
$className = $i . 'Module';
$currentModule = $conf['modules']['directory'] . $className . '.php';
if (!is_file($currentModule)) {
HTTPStatus::send500('<br/>Can\'t load or error in module <pre>' . $currentModule . '</pre>' );
exit(1);
}
require_once($currentModule);
$module = new $className();
$matching = $module->match($uri);
if($matching != FALSE){
if ($matching != FALSE) {
$module->execute($matching);
if($conf['logfile'] != null){
if ($conf['logfile'] != null) {
fwrite($conf['logfile'], "]}");
fclose($conf['logfile']);
}
exit(0);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment