]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12648 Undefined property: stdClass::$wwwroot on popup screen during installation...
authorjerome <jerome>
Thu, 8 May 2008 02:38:38 +0000 (02:38 +0000)
committerjerome <jerome>
Thu, 8 May 2008 02:38:38 +0000 (02:38 +0000)
lib/weblib.php

index c9ef750e9c6567122b30627d73467c5acfcee32f..ec287ffdf6b04630666c67921b50cc5695edd9a3 100644 (file)
@@ -749,7 +749,7 @@ function close_window_button($name='closewindow', $return=false) {
     $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";
@@ -6751,7 +6751,7 @@ function page_doc_link($text='', $iconpath='') {
  */
 function doc_link($path='', $text='', $iconpath='') {
     global $CFG;
-
+    
     if (empty($CFG->docroot)) {
         return '';
     }
@@ -6769,7 +6769,7 @@ function doc_link($path='', $text='', $iconpath='') {
 
     $str = "<a href=\"$url\"$target>";
 
-    if (empty($iconpath)) {
+    if (empty($iconpath)) { 
         $iconpath = $CFG->httpswwwroot . '/pix/docs.gif';
     }