Proyectos de Subversion Moodle

Rev

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

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