text
This commit is contained in:
parent
33e1e20beb
commit
9b463ce674
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ class StaticFiles extends Extension
|
|||
if ($event->page_matches("robots.txt")) {
|
||||
$rbe = send_event(new RobotsBuildingEvent());
|
||||
$page->set_mode(PageMode::DATA);
|
||||
$page->set_mime("text/plain");
|
||||
$page->set_data(join("\n", $rbe->parts));
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue