History log of /plugin/usersettings/helper.php (Results 1 – 3 of 3)
Revision Date Author Comments
# 49b74e0a 01-Jun-2026 tracker-user <82045103+tracker-user@users.noreply.github.com>

Review: fix lock collision, lazy lang-apply, endonyms, null-guards, namespacing

- helper: use a distinct lock key ($file.'.lock') in setPreferences() so
the outer read-modify-write lock does not c

Review: fix lock collision, lazy lang-apply, endonyms, null-guards, namespacing

- helper: use a distinct lock key ($file.'.lock') in setPreferences() so
the outer read-modify-write lock does not collide with io_saveFile()'s
own internal lock — previously caused a ~3 s CPU spin on every save
- action: applyUserLang() reads the stored 'lang' record directly via
getRecord() instead of getPreference(), avoiding the REGISTER event
(and inc/lang/ glob) on every logged-in request; the toggle registry is
now built after $conf['lang'] is updated, so toggle labels resolve in
the user's language. Add [a-z0-9-] charset guard on the stored code.
Remove the now-moot $this->localised/$this->lang cache reset.
- action: getAvailableLanguages() returns native endonyms via languageName()
(covers all 78 DokuWiki lang dirs; unknown codes fall back to bare code)
- admin: ?? '' null-guard on $userData['name'] in two places
- All three files: migrate to namespaced base classes
(dokuwiki\Extension\{Plugin,ActionPlugin,AdminPlugin,EventHandler,Event})
- plugin.info.txt: bump date to 2026-06-01

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

show more ...


# f51fe07c 28-May-2026 tracker-user <82045103+tracker-user@users.noreply.github.com>

Review: fix JSON encoding, error message, locale cache, add translations

- helper.php: add JSON_UNESCAPED_UNICODE to json_encode flags
- lang/en: add %s placeholder to adminsavefail for consistency

Review: fix JSON encoding, error message, locale cache, add translations

- helper.php: add JSON_UNESCAPED_UNICODE to json_encode flags
- lang/en: add %s placeholder to adminsavefail for consistency with adminsaved
- action.php: reset plugin locale cache after applying user language override,
so the settings page renders in the user's chosen language rather than the
site default
- Add de, ru, ja translations
- plugin.info.txt: update date

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

show more ...


# 1ab40613 22-May-2026 tracker-user <82045103+tracker-user@users.noreply.github.com>

Initial commit, made with Claude Opus 4.7