diff --git a/lib/tpl/default/detail.php b/lib/tpl/default/detail.php
index 503c0ef71deb75355608e45ea2ab84cfbbd68fac..1c8042e153edca828cbb42f6e7627eb7aa8ba4fa 100644
--- a/lib/tpl/default/detail.php
+++ b/lib/tpl/default/detail.php
@@ -4,9 +4,6 @@
  *
  * This is the template for displaying image details
  *
- * You should leave the doctype at the very top - It should
- * always be the very first line of a document.
- *
  * @link   http://dokuwiki.org/templates
  * @author Andreas Gohr <andi@splitbrain.org>
  */
diff --git a/lib/tpl/default/main.php b/lib/tpl/default/main.php
index 9a14f29a2047bc5b3c9e980a4f8fdbd063194972..851afde6c695805733daded432c23dbd2712a045 100644
--- a/lib/tpl/default/main.php
+++ b/lib/tpl/default/main.php
@@ -5,9 +5,6 @@
  * This is the template you need to change for the overall look
  * of DokuWiki.
  *
- * You should leave the doctype at the very top - It should
- * always be the very first line of a document.
- *
  * @link   http://dokuwiki.org/templates
  * @author Andreas Gohr <andi@splitbrain.org>
  */
diff --git a/lib/tpl/default/mediamanager.php b/lib/tpl/default/mediamanager.php
index 2b3e6e7db5033a19bb0e16065b084c98b9b9a800..35b526a32644fa31caa03f4ebe9d69eac7dcb0f4 100644
--- a/lib/tpl/default/mediamanager.php
+++ b/lib/tpl/default/mediamanager.php
@@ -1,14 +1,9 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <?php
 /**
  * DokuWiki Default Template
  *
  * This is the template for the media manager popup
  *
- * You should leave the doctype at the very top - It should
- * always be the very first line of a document.
- *
  * @link   http://dokuwiki.org/templates
  * @author Andreas Gohr <andi@splitbrain.org>
  */
@@ -17,6 +12,8 @@
 if (!defined('DOKU_INC')) die();
 
 ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" lang="<?php echo $conf['lang']?>" dir="ltr">
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />