]> andersk Git - sql-web.git/commitdiff
git-svn-id: svn://presbrey.mit.edu/php/lib@127 a142d4bd-2cfb-0310-9673-cb33a7e74f58
authorJoe Presbrey <presbrey@mit.edu>
Thu, 19 Apr 2007 03:29:46 +0000 (03:29 +0000)
committerJoe Presbrey <presbrey@mit.edu>
Thu, 19 Apr 2007 03:29:46 +0000 (03:29 +0000)
lib/joe/site.lib.php

index 1670ed17bfdb39bdad639d6c0700bf9aa56d34e2..cf09c22513498d6193f235fa94d976ef03f55624 100755 (executable)
@@ -27,10 +27,11 @@ class Site {
                        if (class_exists($MODULE)) {
                                $page = new $MODULE($this, $METHOD);
                                $page->Start();
-                               $handlers = $page->get_handlers($METHOD);
-                               foreach($this->ARGV as $argk=>$argv) {
-                                       if (in_array($argk, $handlers) &&
-                                               false !== $page->Run($argk)) {
+                               $handlers = array_intersect(
+                                       $page->get_handlers($METHOD),
+                                       array_keys($this->ARGV));
+                               foreach($handlers as $handler) {
+                                       if (false !== $page->Run($handler)) {
                                                $nCalls++;
                                        }
                                }
This page took 0.12568 seconds and 5 git commands to generate.