Commits

Anonymous committed e53d7d1

Bugfix: Repo browser now respects current profile config.

Comments (0)

Files changed (1)

admin/application/helpers/hg_template_helper.php

 {
 	$ci =& get_instance();
 	$profiles = $ci->config->item('profile');
-	$default_profile = $ci->config->item('default_profile'); // FIXME current profile, not always default
-	return $profiles[$default_profile]['hgserve_url'] . $uri;
+	return $profiles[current_profile()]['hgserve_url'] . $uri;
 }
 
 function theme_name()