diff options
author | nashe <contact@nashe.fr> | 2015-08-11 12:04:53 +0200 |
---|---|---|
committer | nashe <contact@nashe.fr> | 2015-08-11 12:04:53 +0200 |
commit | b84b865d45b00600d982fef18991398cb655c7e9 (patch) | |
tree | 5f3d0432facd74395d029c480bb79d9e0669eb01 /custom/views/default/index.tpl.php | |
parent | f2788a4ed2eae7f0056ab200b8fc787ed20a32da (diff) | |
download | planet-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/index.tpl.php')
-rwxr-xr-x | custom/views/default/index.tpl.php | 8 |
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> |