Proyectos de Subversion Moodle

Rev

Rev 682 | Rev 686 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 682 Rev 684
Línea 2380... Línea 2380...
2380
        return $CFG->wwwroot . '/theme/universe_child/pix/icon-calendar.png';
2380
        return $CFG->wwwroot . '/theme/universe_child/pix/icon-calendar.png';
2381
    }
2381
    }
Línea 2382... Línea 2382...
2382
 
2382
 
2383
    public function get_theme_image_login_bg()
2383
    public function get_theme_image_login_bg()
2384
    {
2384
    {
Línea 2385... Línea 2385...
2385
        global $CFG;
2385
        global  $DB, $CFG;
2386
 
2386
 
2387
        if (!empty($this->page->theme->settings->loginimagebackground)) {
-
 
2388
            $url = $this->page->theme->setting_file_url('loginimagebackground', 'loginimagebackground');
2387
        if (!empty($this->page->theme->settings->loginimagebackground)) {
2389
            // Get a URL suitable for moodle_url.
2388
            $url = $this->page->theme->setting_file_url('loginimagebackground', 'loginimagebackground');
2390
            $relativebaseurl = preg_replace('|^https?://|i', '//', $CFG->wwwroot);
2389
            $relativebaseurl = preg_replace('|^https?://|i', '//', $CFG->wwwroot);
2391
            $url = str_replace($relativebaseurl, '', $url);
2390
            $url = str_replace($relativebaseurl, '', $url);
Línea 2392... Línea 2391...
2392
            return new moodle_url($url);
2391
            return new moodle_url($url);
2393
        }
2392
        }
2394
 
2393