Merge pull request #1300 from victorsl/BUG-10690

BUG 10690 "Cuando se introduce algunas paginas no existentes..." SOLVED
This commit is contained in:
julceslauhub
2013-02-07 13:19:58 -08:00
2 changed files with 6 additions and 2 deletions

View File

@@ -4474,8 +4474,8 @@ class G
$tplExists = true;
// file has absolute path
if (substr( $template, 0, 1 ) != PATH_SEP) {
$template = PATH_TEMPLATE . $template;
if (strpos($template, PATH_TRUNK) === false) {
$template = PATH_TPL . $template;
}
// fix for template that have dot in its name but is not a valid extension

View File

@@ -710,6 +710,10 @@ if (substr( SYS_COLLECTION, 0, 8 ) === 'gulliver') {
if (is_callable( Array ($controllerClass,$controllerAction ) )) {
$isControllerCall = true;
}
if (substr(SYS_SKIN, 0, 2) != "ux" && $controllerClass == "main") {
$isControllerCall = false;
}
}
if (! $isControllerCall && ! file_exists( $phpFile ) && ! $isRestRequest) {
$_SESSION['phpFileNotFound'] = $_SERVER['REQUEST_URI'];