From 7f60ca5ec5a77825e586ee847671b3e5c2d6241e Mon Sep 17 00:00:00 2001
From: tjhunt <tjhunt>
Date: Fri, 19 Jan 2007 09:59:13 +0000
Subject: [PATCH] correct icon path to use $CFG->pixpath.

---
 course/search.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/course/search.php b/course/search.php
index 3fe51d48c3..843884c569 100644
--- a/course/search.php
+++ b/course/search.php
@@ -184,11 +184,7 @@
                 
                 echo "</td>";
                 echo "<td>";
-                if (empty($THEME->custompix)) {
-                    $pixpath = "$CFG->wwwroot/pix";
-                } else {
-                    $pixpath = "$CFG->themedir/$CFG->theme/pix";
-                }
+                $pixpath = $CFG->pixpath;
                 
                 // checks whether user can update course settings
                 if (has_capability('moodle/course:update', $coursecontext)) {
-- 
2.39.5