Fikset at modulnummeret ikke ble vist i index-filene.

master
Eirik Th S 2021-10-10 17:12:46 +02:00
parent 3c7e76e4fb
commit 15ed8f1e6b
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<?php
$dir = array_diff(scandir("./"), array('..','.','index.php','common.php'));
$modul = is_numeric(substr($_SERVER['REQUEST_URI'],-3,2));
$modul = substr($_SERVER['REQUEST_URI'],-2,1);
function getModuleName($input): string {
$oppg = substr($input, -5, 1);