pass name of user as parameter to checkout msg

This commit is contained in:
Uwe Steinmann 2021-04-15 06:34:56 +02:00
parent c0377d4e34
commit 130afd7d25

View File

@ -204,8 +204,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
$checkoutpath = sprintf($checkoutdir, preg_replace('/[^A-Za-z0-9_-]/', '', $user->getLogin()));
}
foreach($infos as $info) {
$checkoutuser = $dms->getUser($info['userID']);
echo "<div class=\"alert alert-info\">";
echo "<a href=\"file://".$info['filename']."\">".getMLText('copied_to_checkout_as', array('date'=>$info['date'], 'filename'=>substr($info['filename'], strlen($checkoutpath)+1)))."</a>";
echo "<a href=\"file://".$info['filename']."\">".getMLText('copied_to_checkout_as', array('date'=>$info['date'], 'filename'=>substr($info['filename'], strlen($checkoutpath)+1), 'username'=>($checkoutuser ? $checkoutuser->getFullName() : '')))."</a>";
echo "</div>";
}
}