More fixes

This commit is contained in:
slawkens 2024-01-31 00:45:59 +01:00
parent f93bcb0557
commit 136659ac9a
2 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ $ots = POT::getInstance();
require __DIR__ . '/system/libs/pot/InvitesDriver.php';
require __DIR__ . '/system/libs/rfc6238.php';
require __DIR__ . '/common.php';
const ACTION = '';
const PAGE = '';
define('SELF_NAME', basename(__FILE__));

View File

@ -236,7 +236,7 @@ else {
// parse for define PAGE
$tmp = BASE_DIR;
$uri = $_SERVER['REQUEST_URI'];
if (!empty($tmp)) {
if (strlen($tmp) > 0) {
$uri = str_replace(BASE_DIR . '/', '', $uri);
}