mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-44650 Remove invalid meta tags "pragma" and "expires"
This commit is contained in:
parent
c0e88129d1
commit
db64fd6b1c
@ -278,10 +278,7 @@ function install_print_help_page($help) {
|
||||
<link rel="stylesheet" type="text/css" href="'.$CFG->wwwroot.'/install/css.php" />
|
||||
<title>'.get_string('installation','install').'</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
<meta http-equiv="expires" content="0" />';
|
||||
|
||||
echo '</head><body>';
|
||||
</head><body>';
|
||||
switch ($help) {
|
||||
case 'phpversionhelp':
|
||||
print_string($help, 'install', phpversion());
|
||||
|
@ -364,10 +364,6 @@ class core_renderer extends renderer_base {
|
||||
$output = '';
|
||||
$output .= '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />' . "\n";
|
||||
$output .= '<meta name="keywords" content="moodle, ' . $this->page->title . '" />' . "\n";
|
||||
if (!$this->page->cacheable) {
|
||||
$output .= '<meta http-equiv="pragma" content="no-cache" />' . "\n";
|
||||
$output .= '<meta http-equiv="expires" content="0" />' . "\n";
|
||||
}
|
||||
// This is only set by the {@link redirect()} method
|
||||
$output .= $this->metarefreshtag;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user