<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
// verify event input on info page
// start at Manage Events listing
$this->openCiviPage('event/manage', 'reset=1');
- $this->click("link=" . $params['title']);
+ $this->clickLink("link=" . $params['title'], NULL);
- $this->waitForPageToLoad($this->getTimeoutMsec());
-
- $matches = array();
- preg_match('/id=([0-9]+)/', $this->getLocation(), $matches);
- $params['event_id'] = $matches[1];
+ $params['event_id'] = $this->urlArg('id');;
return $params;
}