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-20644@lists.php.net to get a copy of this message
Commit: e437f8ce410430efc8cc2fcb6d24f6de10e00b76 Author: Hannes Magnusson <bjori@mongodb.com> Tue, 3 Feb 2015 11:48:28 -0800 Parents: f89cfe2e82aa4a24708c65feaf7b3e7d16cce3bc Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=e437f8ce410430efc8cc2fcb6d24f6de10e00b76 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 (#20644) next »