summaryrefslogtreecommitdiffstats
path: root/custom/views/default
diff options
context:
space:
mode:
authornashe <contact@nashe.fr>2015-08-11 12:04:53 +0200
committernashe <contact@nashe.fr>2015-08-11 12:04:53 +0200
commitb84b865d45b00600d982fef18991398cb655c7e9 (patch)
tree5f3d0432facd74395d029c480bb79d9e0669eb01 /custom/views/default
parentf2788a4ed2eae7f0056ab200b8fc787ed20a32da (diff)
downloadplanet-b84b865d45b00600d982fef18991398cb655c7e9.tar
planet-b84b865d45b00600d982fef18991398cb655c7e9.tar.gz
planet-b84b865d45b00600d982fef18991398cb655c7e9.tar.bz2
planet-b84b865d45b00600d982fef18991398cb655c7e9.tar.xz
planet-b84b865d45b00600d982fef18991398cb655c7e9.zip
Clean code
Replace dirname(__FILE__) by __DIR__.
Diffstat (limited to 'custom/views/default')
-rwxr-xr-xcustom/views/default/index.tpl.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/custom/views/default/index.tpl.php b/custom/views/default/index.tpl.php
index 1bf037a..2a5827f 100755
--- a/custom/views/default/index.tpl.php
+++ b/custom/views/default/index.tpl.php
@@ -12,7 +12,7 @@ header('Content-type: text/html; charset=UTF-8');
<meta http-equiv="Content-Style-Type" content="text/css" />
<title><?php echo $PlanetConfig->getName(); ?></title>
- <?php include(dirname(__FILE__).'/head.tpl.php'); ?>
+ <?php include(__DIR__.'/head.tpl.php'); ?>
</head>
<body>
@@ -20,7 +20,7 @@ header('Content-type: text/html; charset=UTF-8');
document.body.className += 'js';
</script>
<div id="page">
- <?php include(dirname(__FILE__).'/top.tpl.php'); ?>
+ <?php include(__DIR__.'/top.tpl.php'); ?>
<div id="content">
<?php if (0 == count($items)) : ?>
@@ -65,9 +65,9 @@ header('Content-type: text/html; charset=UTF-8');
<?php endif; ?>
</div>
- <?php include_once(dirname(__FILE__).'/sidebar.tpl.php'); ?>
+ <?php include_once(__DIR__.'/sidebar.tpl.php'); ?>
- <?php include(dirname(__FILE__).'/footer.tpl.php'); ?>
+ <?php include(__DIR__.'/footer.tpl.php'); ?>
</div>
</body>
</html>