From 798783263a8638675c0df2d1274fb1947ef79d1b Mon Sep 17 00:00:00 2001 From: "godzilla80@gmx.net" <> Date: Wed, 18 Mar 2009 09:15:53 +0000 Subject: a little "goggle code issues" releated modification --- .../FunctionalTests/tickets/protected/pages/Layout.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'tests/FunctionalTests/tickets') diff --git a/tests/FunctionalTests/tickets/protected/pages/Layout.php b/tests/FunctionalTests/tickets/protected/pages/Layout.php index 0e549fa7..6d455371 100644 --- a/tests/FunctionalTests/tickets/protected/pages/Layout.php +++ b/tests/FunctionalTests/tickets/protected/pages/Layout.php @@ -4,10 +4,19 @@ class Layout extends TTemplateControl { public function onLoad($param) { - $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/prado/ticket/{$num}"); + $num = str_replace(array('Ticket', 'Issue'), '', $this->getPage()->getPagePath()); + $type = str_replace($num, '', $this->getPage()->getPagePath()); + + $this->getPage()->setTitle("Verifying $type $num"); + $this->ticketlink->setText("Verifying $type $num"); + + if(strToLower($type) === 'issue') { + $this->ticketlink->setNavigateUrl("http://code.google.com/p/prado3/issues/detail?id={$num}"); + } + else { + $this->ticketlink->setNavigateUrl("http://trac.pradosoft.com/prado/ticket/{$num}"); + } + } } -- cgit v1.2.3