[geeklog-cvs] MVCnPHP Controller.class.php,1.2,1.3

geeklog-cvs-admin at lists.geeklog.net geeklog-cvs-admin at lists.geeklog.net
Fri May 2 12:47:57 EDT 2003


Update of /usr/cvs/geeklog/MVCnPHP
In directory internal.geeklog.net:/tmp/cvs-serv24176

Modified Files:
	Controller.class.php 
Log Message:
Fixed controller so that when processing a command other than a few it will do a isForward() check.  This is necessary to avoid unnecessary errors that would be produced when using QuickForm

Index: Controller.class.php
===================================================================
RCS file: /usr/cvs/geeklog/MVCnPHP/Controller.class.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Controller.class.php	9 Apr 2003 15:28:51 -0000	1.2
--- Controller.class.php	2 May 2003 16:47:55 -0000	1.3
***************
*** 265,269 ****
              $tmp = &CommandFactory::getCommand($this->_mapping->getPath(), $this->_mapping->getName());
              $strForward = $tmp->execute();
!             $this->_forwardControl($strForward);
          }
      }
--- 265,272 ----
              $tmp = &CommandFactory::getCommand($this->_mapping->getPath(), $this->_mapping->getName());
              $strForward = $tmp->execute();
!             // This IF is required to avoid errors using quickform
!             if ($this->_isForward($strForward)) {
!                 $this->_forwardControl($strForward);
!             }
          }
      }





More information about the geeklog-cvs mailing list