BUG 11603 "Please consider include 'special' pages..." SOLVED
- Please consider include "special" pages layout to the SKIN. - Problema resuelto, se han customizado las interfaces "error404" y "updating", ahora estan disponibles en los skins "neoclassic" y "classic". Se ha validado esta interfaz en los skins, de no existir los templates en un determinado skin, automaticamente utilizara el template del skin "classic". * Available from version ProcessMaker-2.5.1-testing.3
This commit is contained in:
@@ -5160,6 +5160,47 @@ class G
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
public static function skinGetPathToSrcByVirtualUri($option)
|
||||
{
|
||||
$path = "";
|
||||
$ereg = "";
|
||||
$strSearch = "";
|
||||
|
||||
switch ($option) {
|
||||
case "errors":
|
||||
$ereg = "/^\/errors\/.*$/";
|
||||
$strSearch = "/errors/";
|
||||
break;
|
||||
case "update":
|
||||
$ereg = "/^\/update\/.*$/";
|
||||
$strSearch = "/update/";
|
||||
break;
|
||||
}
|
||||
|
||||
if (preg_match($ereg, $_SERVER["REQUEST_URI"])) {
|
||||
$strAux = str_replace($strSearch, null, $_SERVER["REQUEST_URI"]);
|
||||
|
||||
if ($strAux != "") {
|
||||
$arrayAux = explode("?", $strAux);
|
||||
$fileTemplate = $arrayAux[0];
|
||||
|
||||
if (file_exists(PATH_SKIN_ENGINE . $_SESSION["currentSkin"] . PATH_SEP . $fileTemplate)) {
|
||||
$path = PATH_SKIN_ENGINE . $_SESSION["currentSkin"] . PATH_SEP;
|
||||
}
|
||||
|
||||
if (file_exists(PATH_SKINS . $_SESSION["currentSkin"] . PATH_SEP . $fileTemplate)) {
|
||||
$path = PATH_SKINS . $_SESSION["currentSkin"] . PATH_SEP;
|
||||
}
|
||||
|
||||
if (file_exists(PATH_CUSTOM_SKINS . $_SESSION["currentSkin"] . PATH_SEP . $fileTemplate)) {
|
||||
$path = PATH_CUSTOM_SKINS . $_SESSION["currentSkin"] . PATH_SEP;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $path;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user