sbpp / sourcebans-pp

Admin, ban, and comms management system for the Source engine
https://sbpp.github.io/
Creative Commons Attribution Share Alike 4.0 International
335 stars 174 forks source link

Theme balise does not work on settings page #805

Closed Rushaway closed 1 year ago

Rushaway commented 1 year ago

What are the steps to reproduce this issue?

  1. Add a script in your footer.tpl
  2. use the balise {$theme} instead of your theme name
  3. Work on all pages except on index.php?p=admin&c=settings

What happens?

{$theme} balise does not work on all pages

What were you expecting to happen?

Make it work instead of return the name of theme as "Array"

Any logs, error output, etc.?

It return as error in browser console with the following path. /themes/Array/

Any other comments?

Made it only php 7.4 from github master branch. Cannot reproduct it with 8.1 branch

What versions of software are you using?

Operating System: ngnix SourceBans++ Version: 1.7.0 from github master branch PHP Version: 7.4 MySQL Version: 10.6.7-MariaDB-2ubuntu1 - Ubuntu 22.04 Link to your project: https://bans.nide.gg/ Link to a phpinfo() output: N/A

Rushaway commented 1 year ago

Infos: Was closed due to focusing on 8.1. Will not be fixed.