diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-18 11:40:34 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-18 11:40:34 +0000 |
commit | c406571bd2a014dac3b4a023f96ec6331eb788b0 (patch) | |
tree | d617e30b4062fabcb8dc81c3ba5bd5108affdc07 /engine/lib/plugins.php | |
parent | aafccab48912790f191465b60371f9ab4259d8bd (diff) | |
download | elgg-c406571bd2a014dac3b4a023f96ec6331eb788b0.tar.gz elgg-c406571bd2a014dac3b4a023f96ec6331eb788b0.tar.bz2 |
Improvements to get_context
git-svn-id: https://code.elgg.org/elgg/trunk@1466 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/plugins.php')
-rw-r--r-- | engine/lib/plugins.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index b92ffd72d..51a47601d 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -98,12 +98,11 @@ }
}
} else {
- $file = $_SERVER["SCRIPT_NAME"];
- if (substr_count($file,'handlers/pagehandler')) {
- if (preg_match("/pg\/([a-zA-Z0-9\-\_]*)\//",$_SERVER['REQUEST_URI'],$matches)) {
- return $matches[1];
- }
+ //if (substr_count($file,'handlers/pagehandler')) {
+ if (preg_match("/pg\/([a-zA-Z0-9\-\_]*)\//",$_SERVER['REQUEST_URI'],$matches)) {
+ return $matches[1];
} else {
+ $file = $_SERVER["SCRIPT_NAME"];
$file = str_replace("\\","/",$file);
$file = str_replace("//","/",$file);
if (preg_match("/mod\/([a-zA-Z0-9\-\_]*)\//",$file,$matches)) {
|