gjb2048 / moodle-theme_essential

The Essential Moodle Theme
https://gjb2048.github.io/moodle-theme_essential/
GNU General Public License v3.0
91 stars 120 forks source link

Use or deprecated API pix_url. #847

Closed juacas closed 6 years ago

juacas commented 6 years ago

The theme uses a deprecated API for images and icons. The warnings break the interface if debug is enabled.

pix_url is deprecated. Use image_url for images and pix_icon for icons. line 1696 of \lib\outputlib.php: call to debugging() line 64 of \theme\essential\classes\output\core_renderer_toolbox.php: call to theme_config->pix_url() line 971 of \theme\essential\classes\output\core_renderer.php: call to theme_essential\output\core_renderer->pix_url() line 68 of \theme\essential\layout\tiles\navbar.php: call to theme_essential\output\core_renderer->custom_menu_activitystream() line 58 of \theme\essential\layout\tiles\header.php: call to require_once() line 30 of \theme\essential\layout\columns3.php: call to require_once() line 1162 of \lib\outputrenderers.php: call to include() line 1092 of \lib\outputrenderers.php: call to core_renderer->render_page_layout() line 244 of \course\view.php: call to core_renderer->header()

gjb2048 commented 6 years ago

You must be using the wrong version on Moodle 3.3 -> https://github.com/gjb2048/moodle-theme_essential/blob/master/classes/output/core_renderer_toolbox.php#L64