diff --git a/Changelog b/Changelog index 8a08996ba..f79483ed1 100755 --- a/Changelog +++ b/Changelog @@ -1,3 +1,5 @@ +2017-12-29 DariusIII + * Chg: Update constants defintions in Captcha class 2017-12-28 DariusIII * Chg: Update populate_rt_indexes.php * Chg: Remove unused DnzbFailures class use statements diff --git a/nntmux/Captcha.php b/nntmux/Captcha.php index abf5e9ef1..a836994fe 100755 --- a/nntmux/Captcha.php +++ b/nntmux/Captcha.php @@ -48,22 +48,22 @@ class Captcha /** * $_POST key for the user-supplied ReCaptcha response. */ - const RECAPTCHA_POSTKEY = 'g-recaptcha-response'; + private const RECAPTCHA_POSTKEY = 'g-recaptcha-response'; /** * Error key literals. */ - const RECAPTCHA_ERROR_MISSING_SECRET = 'missing-input-secret'; - const RECAPTCHA_ERROR_INVALID_SECRET = 'invalid-input-secret'; - const RECAPTCHA_ERROR_MISSING_RESPONSE = 'missing-input-response'; - const RECAPTCHA_ERROR_INVALID_RESPONSE = 'invalid-input-response'; + private const RECAPTCHA_ERROR_MISSING_SECRET = 'missing-input-secret'; + private const RECAPTCHA_ERROR_INVALID_SECRET = 'invalid-input-secret'; + private const RECAPTCHA_ERROR_MISSING_RESPONSE = 'missing-input-response'; + private const RECAPTCHA_ERROR_INVALID_RESPONSE = 'invalid-input-response'; /** * Settings key literals. */ - const RECAPTCHA_SETTING_SITEKEY = 'APIs.recaptcha.sitekey'; - const RECAPTCHA_SETTING_SECRETKEY = 'APIs.recaptcha.secretkey'; - const RECAPTCHA_SETTING_ENABLED = 'APIs.recaptcha.enabled'; + public const RECAPTCHA_SETTING_SITEKEY = 'APIs.recaptcha.sitekey'; + public const RECAPTCHA_SETTING_SECRETKEY = 'APIs.recaptcha.secretkey'; + public const RECAPTCHA_SETTING_ENABLED = 'APIs.recaptcha.enabled'; /** * Construct and decide whether to show the captcha or not.