MyBB Community Forums

Full Version: [B] flash_message()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
While developing my new plugin which uses the flash_message() function, I notice that when I went to the page, the message wouldn't show up. But when I refreshed the page, it showed up then.

I was using this:
$page->output_header("Edit Plugin");
		
$page->output_nav_tabs($sub_tabs, 'edit_plugin');

flash_message("You can only edit plugins that <strong>are not</strong> active.");
The flip-side of this works though...
flash_message("You can only edit plugins that <strong>are not</strong> active.");

$page->output_header("Edit Plugin");
		
$page->output_nav_tabs($sub_tabs, 'edit_plugin');

Is this a bug, or is it meant to be this way?