mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #02852
[Bug 725481] Re: missing param in /artefact/file/form/elements/filebrowser.php
Good catch. Thanks for that Heinz!
** Changed in: mahara
Status: New => Fix Committed
** Changed in: mahara
Importance: Undecided => Low
** Changed in: mahara
Assignee: (unassigned) => François Marier (fmarier)
** Changed in: mahara
Milestone: None => 1.4.0
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/725481
Title:
missing param in /artefact/file/form/elements/filebrowser.php
Status in Mahara ePortfolio:
Fix Committed
Bug description:
Hi,
there is a missing param in
/artefact/file/form/elements/filebrowser.php
function pieform_element_filebrowser_get_path($folder) {
$path = array();
if ($folder) {
$folders = ArtefactTypeFileBase::artefactchooser_folder_data(artefact_instance_from_id($folder))->data;
$f = $folder;
while ($f) {
$path[] = (object) array('title' => $folders[$f]->title, 'id' => $f);
$f = $folders[$f]->parent;
}
}
$path[] = (object) array('title' => get_string('home'), 'id' => 0);
return $path;
}
needs a get_string('home') , 'artefact.file') to use the "home" var
in artefact.file.php
$string['home'] = 'Stammverzeichnis';
Cheers
Heinz
References