OSDN Git Service

- keep comapt with PHP 4.1.x
authorfujimoto <fujimoto@2ef88817-412d-0410-a32c-8029a115e976>
Wed, 8 Dec 2004 17:45:28 +0000 (17:45 +0000)
committerfujimoto <fujimoto@2ef88817-412d-0410-a32c-8029a115e976>
Wed, 8 Dec 2004 17:45:28 +0000 (17:45 +0000)
class/Ethna_Controller.php

index 33dbf54..0db12a7 100644 (file)
@@ -757,7 +757,7 @@ class Ethna_Controller
                        $view_name = $this->getViewClassName($forward_name);
                        $view_class =& new $view_name($this->backend, $forward_name, $this->_getForwardPath($forward_name));
                        // ¸åÊý¸ß´¹½èÍý:(
-                       if (is_a($view_class, 'Ethna_ViewClass') == false) {
+                       if (is_subclass_of($view_class, 'Ethna_ViewClass') == false) {
                                $view_class->preforward();
                                $view_class =& new Ethna_ViewClass($this->backend, $forward_name, $this->_getForwardPath($forward_name));
                        }