Commit: 2214861bc03ac9e7ccb3fe188416a5032bc0897f Author: Peter Kokot <peterko...@gmail.com> Thu, 18 Oct 2018 21:33:25 +0200 Parents: 48751177da663fc54c53c56c688ad81f2e9f3b81 Branches: master
Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=2214861bc03ac9e7ccb3fe188416a5032bc0897f Log: Replace dirname(__FILE__) with shorter __DIR__ Changed paths: M include/layout.php Diff: diff --git a/include/layout.php b/include/layout.php index efd182d..6f7ae04 100644 --- a/include/layout.php +++ b/include/layout.php @@ -9,7 +9,7 @@ function site_header($TITLE) { $CSS[] = "/styles/user-autocomplete.css"; $CSS[] = "/styles/people.css"; $SEARCH = array("method" => "get", "action" => "user.php", "placeholder" => "Search profiles", "name" => "username"); - include dirname(__FILE__) . "/../shared/templates/header.inc"; + include __DIR__ . "/../shared/templates/header.inc"; } function site_footer($config = array()) { @@ -21,7 +21,7 @@ function site_footer($config = array()) { if (isset($config["SIDEBAR"])) { $SECONDSCREEN = $config["SIDEBAR"]; } - include dirname(__FILE__) . "/../shared/templates/footer.inc"; + include __DIR__ . "/../shared/templates/footer.inc"; } -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php