From 42b702a6276563e9024550870e36fa1ef5e33c42 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Wed, 14 Apr 2010 14:05:39 +0000 Subject: [PATCH] MDL-22015 list of pix names is not used any more --- lib/moodlelib.php | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 908f767a751..e7415df79dc 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6567,42 +6567,6 @@ function get_list_of_themes() { return $themes; } - -/** - * Returns a list of picture names in the current or specified language - * - * @global object - * @return array - */ -function get_list_of_pixnames($lang = '') { - global $CFG; - - if (empty($lang)) { - $lang = current_language(); - } - - $string = array(); - - $path = $CFG->dirroot .'/lang/en/pix.php'; // always exists - - if (file_exists($CFG->dataroot .'/lang/'. $lang .'_local/pix.php')) { - $path = $CFG->dataroot .'/lang/'. $lang .'_local/pix.php'; - - } else if (file_exists($CFG->dirroot .'/lang/'. $lang .'/pix.php')) { - $path = $CFG->dirroot .'/lang/'. $lang .'/pix.php'; - - } else if (file_exists($CFG->dataroot .'/lang/'. $lang .'/pix.php')) { - $path = $CFG->dataroot .'/lang/'. $lang .'/pix.php'; - - } else if ($parentlang = get_parent_language()) { - return get_list_of_pixnames($parentlang); //return pixnames from parent language instead - } - - include($path); - - return $string; -} - /** * Returns a list of timezones in the current language * -- 2.43.0