Proyectos de Subversion Moodle

Rev

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

Rev 669 Rev 676
Línea 2383... Línea 2383...
2383
    }
2383
    }
Línea 2384... Línea 2384...
2384
 
2384
 
2385
    public function get_image_login()
2385
    public function get_image_login()
2386
    {
2386
    {
2387
        global $CFG;
-
 
2388
 
-
 
2389
 
-
 
2390
        if (!empty($this->page->theme->settings->navbar_icon_calendar)) {
-
 
2391
            $url = $this->page->theme->setting_file_url('image_login', 'image_login');
-
 
2392
            // Get a URL suitable for moodle_url.
-
 
2393
            $relativebaseurl = preg_replace('|^https?://|i', '//', $CFG->wwwroot);
-
 
2394
            $url = str_replace($relativebaseurl, '', $url);
-
 
2395
            return new moodle_url($url);
-
 
2396
        }
-
 
2397
 
-
 
2398
 
-
 
2399
 
2387
        global $CFG;
2400
        return $CFG->wwwroot . '/theme/universe_child/pix/login-myonroom.png';
2388
        return $CFG->wwwroot . '/theme/universe_child/pix/login-myonroom.png';
2401
    }
2389
    }