From 9b1102f6f07490776f02af89481ed8e721e3a9fc Mon Sep 17 00:00:00 2001 From: diml Date: Mon, 7 Apr 2008 19:56:13 +0000 Subject: [PATCH] fixes 1.8 fullcode compatibility --- search/indexersplash.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/search/indexersplash.php b/search/indexersplash.php index bc0cda16fb..7198d58edd 100644 --- a/search/indexersplash.php +++ b/search/indexersplash.php @@ -25,11 +25,11 @@ require_once("$CFG->dirroot/search/lib.php"); require_login(); if (empty($CFG->enableglobalsearch)) { - error(get_string('globalsearchdisabled', 'search')); + print_error('globalsearchdisabled', 'search'); } if (!isadmin()) { - error(get_string('beadmin', 'search'), "$CFG->wwwroot/login/index.php"); + print_error('beadmin', 'search', "$CFG->wwwroot/login/index.php"); } /// check for php5 (lib.php) @@ -50,7 +50,11 @@ require_once("$CFG->dirroot/search/lib.php"); $navlinks[] = array('name' => $strsearch, 'link' => "index.php", 'type' => 'misc'); $navlinks[] = array('name' => $strquery, 'link' => "stats.php", 'type' => 'misc'); $navlinks[] = array('name' => get_string('runindexer','search'), 'link' => null, 'type' => 'misc'); - $navigation = build_navigation($navlinks); + if ($CFG->version <= 2007021541){ // 1.8 branch stable timestamp + $navigation = ''; + } else { + $navigation = build_navigation($navlinks); + } $site = get_site(); print_header("$strsearch", "$site->fullname" , $navigation, "", "", true, " ", navmenu($site)); @@ -73,4 +77,4 @@ require_once("$CFG->dirroot/search/lib.php"); else { header('Location: indexer.php?areyousure=yes'); } -?> \ No newline at end of file +?> -- 2.39.5