Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How do I set a config value conditionally?
I'm trying to serve one of two themes conditionally in Vanilla 2, depending on the user agent. When I add the conditional manually to /conf/config.php, everything works just fine. But as soon as I set anything in the admin dashboard, that conditional statement (and anything else manually added) gets removed from config.php.
So how is the best way to go about setting the theme conditionally, either inside or outside /conf/config.php?
So how is the best way to go about setting the theme conditionally, either inside or outside /conf/config.php?
0