From 3d97e54728fbd87ebcef7732aca30e7aaeda408c Mon Sep 17 00:00:00 2001 From: Michael Fairchild <mfairchild365@gmail.com> Date: Thu, 17 Dec 2015 14:47:58 -0600 Subject: [PATCH] Use local wdn includes if available --- www/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/index.php b/www/index.php index 93cfc86..f9ba723 100644 --- a/www/index.php +++ b/www/index.php @@ -36,6 +36,11 @@ if (UNL_Search::$mode === 'debug') { $page->addScript('js/search.min.js'); } +$wdn_include_path = UNL_Search::getProjectRoot() . '/www'; +if (file_exists($wdn_include_path . '/wdn/templates_4.1')) { + $page->setLocalIncludePath($wdn_include_path); +} + if (!$isEmbed) { $page->doctitle = '<title>Search | University of Nebraska–Lincoln</title>'; $page->pagetitle = ''; -- GitLab