2010-08-08, 10:14 PM
(This post was last modified: 2010-08-09, 09:52 AM by Polarbear541.)
I made a minor update to my UA Theme plugin. During the update to 1.6 on my forum I noticed that the plugin couldn't find the language file and displayed an ugly error on every page of the update process. The fix was simple: If the user is upgrading or installing, don't run the plugin. A simple "if(!defined("INSTALL_ROOT"))" statement fixed things up nicely (though it took me a few tries to get it right). Nothing special is needed to update, just upload the new inc/plugins/uatheme.php file before you update if you don't want to see the annoying error message at the bottom of the screen.
I've attached the file for those that don't want to wait for the mods page to finish validating.
P.S. to the people that validate the plugins, sorry for uploading the file so many times. I should probably verify that the "fix" actually fixes the issue before uploading the updated file next time .
http://mods.mybb.com/view/ua-theme
I've attached the file for those that don't want to wait for the mods page to finish validating.
P.S. to the people that validate the plugins, sorry for uploading the file so many times. I should probably verify that the "fix" actually fixes the issue before uploading the updated file next time .
http://mods.mybb.com/view/ua-theme