aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/pagehandler.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 11:14:37 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 11:14:37 +0000
commit95b89b5b595d688b54abc98158623ecdea40d330 (patch)
tree001aeadcb18f818fd35ebc2613a09bb59cddb3e8 /engine/lib/pagehandler.php
parent1cf2d249796d8ed24ba94450be267045e71987c2 (diff)
downloadelgg-95b89b5b595d688b54abc98158623ecdea40d330.tar.gz
elgg-95b89b5b595d688b54abc98158623ecdea40d330.tar.bz2
Removed page handler default errors
git-svn-id: https://code.elgg.org/elgg/trunk@1886 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/pagehandler.php')
-rw-r--r--engine/lib/pagehandler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/pagehandler.php b/engine/lib/pagehandler.php
index 97357b19f..a2bee1bc5 100644
--- a/engine/lib/pagehandler.php
+++ b/engine/lib/pagehandler.php
@@ -106,14 +106,14 @@
$script = str_replace("..","",$script);
$callpath = $CONFIG->path . $handler . "/" . $page;
- if (!@include($callpath)) {
- if (substr_count($callpath,'.php') == 0) {
+ if (!file_exists($callpath) || is_dir($callpath) || substr_count($callpath,'.php') == 0) {
if (substr($callpath,strlen($callpath) - 1, 1) != "/")
$callpath .= "/";
$callpath .= "index.php";
if (!include($callpath))
return false;
- }
+ } else {
+ include($callpath);
}
return true;