original_string: public static function early_error_content($message, $moreinfourl, $link, $backtrace, $debuginfo = null) {
          global $CFG;
  
          $content = '<div style="margin-top: 6em; margin-left:auto; margin-right:auto; color:#990000; text-align:center; font-size:large; border-width:1px;
  border-color:black; background-color:#ffffee; border-style:solid; border-radius: 20px; border-collapse: collapse;
  width: 80%; -moz-border-radius: 20px; padding: 15px">
  ' . $message . '
  </div>';
          // Check whether debug is set.
          $debug = (!empty($CFG->debug) && $CFG->debug >= DEBUG_DEVELOPER);
          // Also check we have it set in the config file. This occurs if the method to read the config table from the
          // database fails, reading from the config table is the first database interaction we have.
          $debug = $debug || (!empty($CFG->config_php_settings['debug'])  && $CFG->config_php_settings['debug'] >= DEBUG_DEVELOPER );
          if ($debug) {
              if (!empty($debuginfo)) {
                  $debuginfo = s($debuginfo); // removes all nasty JS
                  $debuginfo = str_replace("\n", '<br />', $debuginfo); // keep newlines
                  $content .= '<div class="notifytiny">Debug info: ' . $debuginfo . '</div>';
              }
              if (!empty($backtrace)) {
                  $content .= '<div class="notifytiny">Stack trace: ' . format_backtrace($backtrace, false) . '</div>';
              }
          }
  
          return $content;
      }
code: public static function early_error_content($message, $moreinfourl, $link, $backtrace, $debuginfo = null) {
          global $CFG;
  
          $content = '<div style="margin-top: 6em; margin-left:auto; margin-right:auto; color:#990000; text-align:center; font-size:large; border-width:1px;
  border-color:black; background-color:#ffffee; border-style:solid; border-radius: 20px; border-collapse: collapse;
  width: 80%; -moz-border-radius: 20px; padding: 15px">
  ' . $message . '
  </div>';
          // Check whether debug is set.
          $debug = (!empty($CFG->debug) && $CFG->debug >= DEBUG_DEVELOPER);
          // Also check we have it set in the config file. This occurs if the method to read the config table from the
          // database fails, reading from the config table is the first database interaction we have.
          $debug = $debug || (!empty($CFG->config_php_settings['debug'])  && $CFG->config_php_settings['debug'] >= DEBUG_DEVELOPER );
          if ($debug) {
              if (!empty($debuginfo)) {
                  $debuginfo = s($debuginfo); // removes all nasty JS
                  $debuginfo = str_replace("\n", '<br />', $debuginfo); // keep newlines
                  $content .= '<div class="notifytiny">Debug info: ' . $debuginfo . '</div>';
              }
              if (!empty($backtrace)) {
                  $content .= '<div class="notifytiny">Stack trace: ' . format_backtrace($backtrace, false) . '</div>';
              }
          }
  
          return $content;
      }
code_tokens: public static function early_error_content ( $ message , $ moreinfourl , $ link , $ backtrace , $ debuginfo = null ) { global $ CFG ; $ content = '<div style="margin-top: 6em; margin-left:auto; margin-right:auto; color:#990000; text-align:center; font-size:large; border-width:1px;
  border-color:black; background-color:#ffffee; border-style:solid; border-radius: 20px; border-collapse: collapse;
  width: 80%; -moz-border-radius: 20px; padding: 15px">
  ' . $ message . '
  </div>' ; // Check whether debug is set. $ debug = ( ! empty ( $ CFG -> debug ) && $ CFG -> debug >= DEBUG_DEVELOPER ) ; // Also check we have it set in the config file. This occurs if the method to read the config table from the // database fails, reading from the config table is the first database interaction we have. $ debug = $ debug || ( ! empty ( $ CFG -> config_php_settings [ 'debug' ] ) && $ CFG -> config_php_settings [ 'debug' ] >= DEBUG_DEVELOPER ) ; if ( $ debug ) { if ( ! empty ( $ debuginfo ) ) { $ debuginfo = s ( $ debuginfo ) ; // removes all nasty JS $ debuginfo = str_replace ( "\n" , '<br />' , $ debuginfo ) ; // keep newlines $ content .= '<div class="notifytiny">Debug info: ' . $ debuginfo . '</div>' ; } if ( ! empty ( $ backtrace ) ) { $ content .= '<div class="notifytiny">Stack trace: ' . format_backtrace ( $ backtrace , false ) . '</div>' ; } } return $ content ; }
docstring: Returns nicely formatted error message in a div box.
  @static
  @param string $message error message
  @param string $moreinfourl (ignored in early errors)
  @param string $link (ignored in early errors)
  @param array $backtrace
  @param string $debuginfo
  @return string
docstring_tokens: Returns nicely formatted error message in a div box .