From 1b20976d3c07fa7a1737556a5987c88476c4782d Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 13 Feb 2006 18:18:32 +0000 Subject: Added PagePath property to TPage. --- tests/FunctionalTests/tickets/protected/pages/Layout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/FunctionalTests') diff --git a/tests/FunctionalTests/tickets/protected/pages/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Layout.php index 64b0aebe..c2a8a44c 100644 --- a/tests/FunctionalTests/tickets/protected/pages/Layout.php +++ b/tests/FunctionalTests/tickets/protected/pages/Layout.php @@ -4,7 +4,7 @@ class Layout extends TTemplateControl { public function onLoad($param) { - $num = str_replace('Ticket','',get_class($this->getPage())); + $num = str_replace('Ticket','',$this->getPage()->getPagePath()); $this->getPage()->setTitle("Verifying Ticket $num"); $this->ticketlink->setText("Verifying Ticket $num"); $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/ticket/{$num}"); -- cgit v1.2.3