hackily fix non-niceurl'ed tests

This commit is contained in:
Shish 2012-08-18 20:31:13 +01:00
parent 27c06f02ce
commit c1fbf128c9

View File

@ -112,7 +112,7 @@ class SCoreWebTestCase extends WebTestCase {
protected function get_page($page) {
if($_SERVER['HTTP_HOST'] == "<cli command>") {
//print "http://127.0.0.1/2.Xm/index.php?q=$page";
$raw = $this->get("http://127.0.0.1/2.Xm/index.php?q=$page");
$raw = $this->get("http://127.0.0.1/2.Xm/index.php?q=".str_replace("?", "&", $page));
}
else {
$raw = $this->get(make_http(make_link($page)));