summaryrefslogtreecommitdiff
path: root/lib/tpl/default/mediamanager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tpl/default/mediamanager.php')
-rw-r--r--lib/tpl/default/mediamanager.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/tpl/default/mediamanager.php b/lib/tpl/default/mediamanager.php
index 7b7fe8675..35b526a32 100644
--- a/lib/tpl/default/mediamanager.php
+++ b/lib/tpl/default/mediamanager.php
@@ -1,18 +1,19 @@
-<!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>
*/
+
+// must be run from within DokuWiki
+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" />