MDL-52271 install: don't allow installer to be indexed
authorDan Poltawski <dan@moodle.com>
Mon, 23 Nov 2015 10:14:15 +0000 (10:14 +0000)
committerDavid Monllao <davidm@moodle.com>
Mon, 7 Dec 2015 07:42:11 +0000 (15:42 +0800)
Following guidance from:
https://support.google.com/webmasters/answer/93710?hl=en

lib/installlib.php

index d69ed35..8f033c9 100644 (file)
@@ -337,6 +337,7 @@ function install_print_header($config, $stagename, $heading, $stagetext, $stagec
 
     echo '<link rel="stylesheet" type="text/css" href="'.$CFG->wwwroot.'/install/css.php" />
           <title>'.get_string('installation','install').' - Moodle '.$CFG->target_release.'</title>
+          <meta name="robots" content="noindex">
           <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
           <meta http-equiv="pragma" content="no-cache" />
           <meta http-equiv="expires" content="0" />';