Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidied up, and fixed a few minor errors in, the code. (#179)
Some of the changes: * Removed $to_version from upgrade functionality - we only upgrade to the latest version possible anyway. * Removed the nonfunctional tyl_limits_usergroup_permission_tabs() function and its registration as a hook. * Fixed a mistakenly escaped single quote in the 'tyl_dtformat_desc' message. * Fixed indentation in the thankyoulike_uninstall() and thankyoulike_info() functions. * Converted $db->escape_string()s to htmlspecialchar_uni()s (or removed them altogether) where appropriate. * Fixed the Javascript "settings peeker" so that all settings are properly hidden when the plugin's Enabled setting is Off. * Changed the prefix of all functions I've added from "thankyoulike_" to "tyl_" for compactness. * Inserted underscores into the names of all functions I've added where it improves their readability. * Removed from the "global" declaration at the top of each function any variables that aren't used in the function. * Added a check that the usergroup-based thanks/likes limits are enabled before checking for exceeding of the flood limit.
- Loading branch information