diff options
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Layout.php')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Layout.php | 4 |
1 files changed, 3 insertions, 1 deletions
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}");
|