mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #02842
[Bug 725481] [NEW] missing param in /artefact/file/form/elements/filebrowser.php
Public bug reported:
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
** Affects: mahara
Importance: Undecided
Status: New
--
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:
New
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
Follow ups
References