com web/php: remove unused function: include/layout.inc

From: Date: Tue, 03 Feb 2015 19:48:28 +0000
Subject: com web/php: remove unused function: include/layout.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-21753@lists.php.net to get a copy of this message
Commit: 48994a062f92aef06a19cf2571087b47ceeca1ed Author: Hannes Magnusson <bjori@mongodb.com> 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() {

« previous php.webmaster (#21753) next »