Commit:    e437f8ce410430efc8cc2fcb6d24f6de10e00b76
Author:    Hannes Magnusson <[email protected]>         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()
 {


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to