Skip to content

v1.8.10#232

Merged
TiTidom-RC merged 3 commits into
mainfrom
beta
Apr 11, 2026
Merged

v1.8.10#232
TiTidom-RC merged 3 commits into
mainfrom
beta

Conversation

@TiTidom-RC
Copy link
Copy Markdown
Owner

This pull request introduces a minor version update for the TTS Cast plugin, primarily focused on improving plugin maintenance by cleaning up obsolete files during updates. The most significant change is the automated removal of the now-unnecessary .htaccess file from the plugin's core PHP directory.

Maintenance and cleanup improvements:

  • Added a cleanup routine to ttscast_update() in install.php that automatically removes obsolete files and directories (currently targeting core/php/.htaccess) during plugin updates. This helps keep the plugin directory clean and avoids potential security or compatibility issues with legacy files.
  • Removed the obsolete .htaccess file from core/php/, as it is no longer needed.

Version update:

  • Updated the plugin version in info.json from 1.8.9 to 1.8.10 to reflect these maintenance changes.

Update plugin version to 1.8.10, delete obsolete core/php/.htaccess, and add a cleanup step in plugin_info/install.php. The new code iterates a list of legacy paths (including core/php/.htaccess), logs actions, attempts removal via an escaped exec('rm -rf ...'), and logs success or failure, with exception handling. Existing post-update behavior (AI Stats equipment creation) is preserved.
Add counters for removed paths and errors during the update cleanup loop and increment them on success/failure. Remove verbose per-path debug logs for non-existent paths and instead emit a concise summary debug log reporting total paths checked, removed and any errors. Preserve individual info/warning logs for successful removals and failures, and keep existing exception handling.
@TiTidom-RC TiTidom-RC merged commit aa36f5c into main Apr 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant