Skip to content

Commit

Permalink
Merge branch 'release/3.1.1' into 3.1/master
Browse files Browse the repository at this point in the history
  • Loading branch information
zombor committed Feb 16, 2011
2 parents 748b8d1 + ac22963 commit a7d7fdb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,8 @@
// Bootstrap the application
require APPPATH.'bootstrap'.EXT;

// Disable output buffering
ob_end_flush();

// Enable the unittest module
Kohana::modules(Kohana::modules() + array('unittest' => MODPATH.'unittest'));
3 changes: 2 additions & 1 deletion classes/controller/unittest.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function action_report()

$runner->generate_report($group, $path, FALSE);

$this->request->redirect(URL::base(FALSE, TRUE).$folder.'index.html');
$this->request->redirect(URL::site($folder.'index.html', $this->request));
}
}

Expand Down Expand Up @@ -227,6 +227,7 @@ public function action_run()
->set('group', Arr::get($this->get_groups_list($suite), reset($group), 'All groups'))
->set('groups', $this->get_groups_list($suite))

->set('run_uri', $this->request->uri())
->set('report_uri', $this->report_uri.url::query())

// Whitelist related stuff
Expand Down
2 changes: 1 addition & 1 deletion views/unittest/results.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div id="header" class="results">
<fieldset id="results-options">
<legend>Options</legend>
<?php echo Form::open(NULL, array('method' => 'get'));?>
<?php echo Form::open($run_uri, array('method' => 'get'));?>
<?php echo Form::label('group', __('Switch Group')) ?>
<?php echo Form::select('group', $groups, $group, array('id' => 'group'));?>
<?php if ($xdebug_enabled): ?>
Expand Down

0 comments on commit a7d7fdb

Please sign in to comment.