[Pushed] AdminCP style override loads after show_login() function execution
#1
Line 144:

$default_page->show_login($lang->error_invalid_secret_pin, "error");

This line shows the login page with an error if the PIN entered is invalid. However, when applying custom styling to the style.php file in an AdminCP theme, this page is not completely customized as an eventual custom show_login() function is not fired, and the default show_login() is run instead.

The issue is caused by the following line of code, which is defined @line 420, after that show_login() call:

require_once MYBB_ADMIN_DIR."/styles/{$cp_style}/style.php";

It should be defined before.
[Image: fSGNVQj.png]
Reply


Messages In This Thread
AdminCP style override loads after show_login() function execution - by Shade - 2015-01-31, 05:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)