Minor - Fixing image and adding translations for the document tool.

skala
Julio Montoya 13 years ago
parent d81353e5d6
commit ff1ed1befd
  1. 6
      main/inc/global.inc.php
  2. 4
      main/user/user.php

@ -641,6 +641,9 @@ $app->before(
case 'admin':
$languageFilesToAdd = array('admin');
break;
case 'document':
$languageFilesToAdd = array('document');
break;
case 'dashboard':
$languageFilesToAdd = array ('index', 'tracking', 'userInfo', 'admin', 'gradebook');
break;
@ -656,6 +659,9 @@ $app->before(
case 'session':
$languageFilesToAdd = array('admin', 'registration');
break;
case 'user':
$languageFilesToAdd = array('registration', 'admin', 'userInfo', 'registration');
break;
case 'social':
$languageFilesToAdd = array('userInfo');
break;

@ -584,7 +584,7 @@ function active_filter($active, $url_params, $row) {
}
$result = '';
if ($row[count($row)-1]<>$_user['user_id']) { // you cannot lock yourself out otherwise you could disable all the accounts including your own => everybody is locked out and nobody can change it anymore.
$result = '<center><img src="../img/icons/16/'.$image.'.png" border="0" style="vertical-align: middle;" alt="'.get_lang(ucfirst($action)).'" title="'.get_lang(ucfirst($action)).'"/></center>';
$result = Display::return_icon($image.'.png', get_lang(ucfirst($action)), array(), ICON_SIZE_TINY);
}
return $result;
}
@ -708,4 +708,4 @@ if (api_get_setting('allow_user_headings') == 'true' && api_is_course_admin() &&
}
if ($origin != 'learnpath') {
Display::display_footer();
}
}

Loading…
Cancel
Save