Commit 51064b3b authored by Penny Leach's avatar Penny Leach Committed by Andrew Robert Nicols
Browse files

Bug #841708: view::_create: respect title if it's passed in with $viewdata



Change-Id: I21d5c318b5836c05bfde8a83468afad9e4ce4660
Signed-off-by: default avatarPenny Leach <penny@mjollnir.org>
parent 77c45fa7
......@@ -361,7 +361,7 @@ class View {
'numcolumns' => 3,
'template' => 0,
'type' => 'portfolio',
'title' => self::new_title(get_string('Untitled', 'view'), (object)$viewdata),
'title' => (array_key_exists('title', $viewdata)) ? $viewdata['title'] : self::new_title(get_string('Untitled', 'view'), (object)$viewdata),
);
$data = (object)array_merge($defaultdata, $viewdata);
......
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