Commit 811c9807 authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix <title> for group info page.

parent e7c0a48c
......@@ -27,7 +27,6 @@
define('INTERNAL', 1);
define('MENUITEM', 'groups');
require(dirname(dirname(__FILE__)) . '/init.php');
define('TITLE', get_string('groups'));
require_once('group.php');
require_once('searchlib.php');
require_once(get_config('docroot') . 'interaction/lib.php');
......@@ -37,6 +36,7 @@ $id = param_integer('id');
if (!$group = get_record_select('group', 'id = ? AND deleted = 0', array($id), '*, ' . db_format_tsfield('ctime'))) {
throw new GroupNotFoundException("Couldn't find group with id $id");
}
define('TITLE', $group->name);
$group->ctime = strftime(get_string('strftimedate'), $group->ctime);
$group->admins = get_column_sql("SELECT member
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment