From 22b818afcda89e60a1bee299f19d8ff827097e97 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 30 Mar 2007 00:19:53 +0000 Subject: add test case for #567 --- tests/FunctionalTests/tickets/protected/pages/Layout.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/FunctionalTests/tickets/protected/pages/Layout.php') diff --git a/tests/FunctionalTests/tickets/protected/pages/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Layout.php index c2a8a44c..6959fbe1 100644 --- a/tests/FunctionalTests/tickets/protected/pages/Layout.php +++ b/tests/FunctionalTests/tickets/protected/pages/Layout.php @@ -4,7 +4,9 @@ class Layout extends TTemplateControl { public function onLoad($param) { - $num = str_replace('Ticket','',$this->getPage()->getPagePath()); + $array = array(); + preg_match('/\d+/',$this->getPage()->getPagePath(), $array); + $num = $array[0]; $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