mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Merge remote-tracking branch 'origin/support/3.0' into support/3.1
# Conflicts: # pages/exec.php
This commit is contained in:
@@ -38,15 +38,17 @@ utils::InitTimeZone();
|
||||
*/
|
||||
function CheckPageExists(string $sPagePath, array $aPossibleBasePaths)
|
||||
{
|
||||
$sTargetPage = false;
|
||||
foreach ($aPossibleBasePaths as $sBasePath) {
|
||||
$sTargetPage = utils::RealPath($sPagePath, $sBasePath);
|
||||
if ($sTargetPage !== false) {
|
||||
if (
|
||||
($sTargetPage !== false)
|
||||
&& (strtolower(pathinfo($sTargetPage, PATHINFO_EXTENSION)) === "php")
|
||||
) {
|
||||
return $sTargetPage;
|
||||
}
|
||||
}
|
||||
|
||||
return $sTargetPage;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user