Commit: 48994a062f92aef06a19cf2571087b47ceeca1ed Author: Hannes Magnusson <[email protected]> Tue, 3 Feb 2015 11:48:28 -0800 Parents: 2a3e59cfed060722bbc898bd87def47393a52c8a Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=48994a062f92aef06a19cf2571087b47ceeca1ed Log: remove unused function Changed paths: M include/layout.inc Diff: diff --git a/include/layout.inc b/include/layout.inc index 9fc583b..32770a7 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -385,23 +385,6 @@ function display_event($event, $include_date = 1) <?php } -/** - * Print a view - * - * @param string $templateName - * @param array $params - * @return void - */ -function print_view($templateName, array $params = array()) { - $path = $_SERVER['DOCUMENT_ROOT'] . '/views/' . $templateName; - if(file_exists($path)) { - if(!empty($params)) { - extract($params, EXTR_SKIP); - } - include_once $path; - } -} - // Print news links for archives function news_archive_sidebar() { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
