$output = '';
$output .= '<div class="closewindow">' . "\n";
- $output .= '<form action="'.$CFG->wwwroot.'"><div>'; // We don't use this
+ $output .= '<form action="#"><div>';
$output .= '<input type="button" onclick="self.close();" value="'.get_string($name).'" />';
$output .= '</div></form>';
$output .= '</div>' . "\n";
*/
function doc_link($path='', $text='', $iconpath='') {
global $CFG;
-
+
if (empty($CFG->docroot)) {
return '';
}
$str = "<a href=\"$url\"$target>";
- if (empty($iconpath)) {
+ if (empty($iconpath)) {
$iconpath = $CFG->httpswwwroot . '/pix/docs.gif';
}