This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "quickfw".
The branch, master has been updated
via cfe9bf0889c406aff8dc978d0fdc113e5ab27b38 (commit)
from 8fedff2c3a38b5b885efefee2263bd43828709cf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit cfe9bf0889c406aff8dc978d0fdc113e5ab27b38
Author: Ivan Borzenkov <iva...@li...>
Date: Wed Apr 6 04:56:06 2011 +0400
Убрал извраты с переменной-функцией
diff --git a/QFW/QuickFW/Router.php b/QFW/QuickFW/Router.php
index cf1b2ad..8b4a037 100644
--- a/QFW/QuickFW/Router.php
+++ b/QFW/QuickFW/Router.php
@@ -428,10 +428,7 @@ class QuickFW_Router
if (is_array($this->$type))
return preg_replace(array_keys($this->$type), array_values($this->$type), $uri);
if (is_callable($this->$type))
- {
- $f = $this->$type;
- return $f($uri);
- }
+ return call_user_func($this->$type, $uri);
return $uri;
}
-----------------------------------------------------------------------
Summary of changes:
QFW/QuickFW/Router.php | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
hooks/post-receive
--
quickfw
|