admin
Karma: 101
|
Re:how to change fileauthor to username - 2008/11/27 17:40
Have a look in com_remository/c-classes/remository_addfile_Controller.php. You'll find the main part of the code is:
| Code: |
function addfile($func) {
$file = new remositoryFile();
$file->fileversion = $this->repository->Default_Version;
$file->filedate = date('Y-m-d H:i:s', time());
$file->fileauthor = $this->remUser->fullname();
$file->autoshort = 1;
if ($this->idparm) {
$container = new remositoryContainer($this->idparm);
$clist = $container->getPartialSelectList('containerid', 'class="inputbox"', $this->remUser);
}
else $clist = $this->repository->getSelectList(false, 0, 'containerid', 'class="inputbox"', $this->remUser, true);
require_once ($this->admin->v_classes_path.'remositoryAddFileHTML.php');
$view = new remositoryAddFileHTML($this);
$view->addfileHTML($clist, $file);
}
|
Look for where the file's fileauthor field is set, and change the value from $this->remUser->fullname() to $this->remUser->username.
Martin Brampton aka Counterpoint http://aliro.org http://black-sheep-research.com |