Skip to content
Snippets Groups Projects
Commit 86d43090 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

Remove extra call to all.js from optional head region

parent 7b6593a0
Branches
No related tags found
No related merge requests found
......@@ -15,7 +15,6 @@ $page = UNL_Templates::factory($template);
$page->doctitle = '<title>UNL | Search</title>';
$local_results = '';
$page->head .= '
<script type="text/javascript" src="/wdn/templates_3.0/scripts/all.js"></script>
<script src="http://www.google.com/jsapi?key=ABQIAAAAfxH7RKwDLHYhDD9dSUZe-RTELkNjcWhKXky6vQZrvQAPA5Uw6xR-eQp2X1fKnLG-UqeKQ_7mwv5CcQ" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="http://directory.unl.edu/css/peoplefinder_default.css" />
<link rel="stylesheet" type="text/css" href="searchCSS.css" />
......@@ -39,7 +38,7 @@ if (isset($_GET['u']) //u is referring site
$config = HTMLPurifier_Config::createDefault();
$config->set('Cache.SerializerPath', '/tmp');
$purifier = new HTMLPurifier($config);
$page->head .= '<link rel="home" href="'.htmlentities($_GET['u'], ENT_QUOTES).'" />';
$page->breadcrumbs = $purifier->purify(UNL_Search::removeRelativePaths($scanned->breadcrumbs, $_GET['u']));
$page->titlegraphic = $purifier->purify($scanned->titlegraphic);
......@@ -54,7 +53,7 @@ if (isset($_GET['u']) //u is referring site
$page->footercontent = $purifier->purify($scanned->footercontent);
}
}
if (isset($_GET['cx'])) {
// Use their custom search engine instead of the linked one.
$context = '"'.htmlentities($_GET['cx'], ENT_QUOTES).'"';
......@@ -78,7 +77,7 @@ if (isset($_GET['u']) //u is referring site
$page->leftcollinks = file_get_contents('http://www.unl.edu/ucomm/sharedcode/relatedLinks.html');
$page->contactinfo = file_get_contents('http://www.unl.edu/ucomm/sharedcode/footerContactInfo.html');
$page->footercontent = file_get_contents('http://www.unl.edu/ucomm/sharedcode/footer.html');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment