Another bit of fixes including a missing sub_template and removed some unsed globals
Another bit of fixes including a missing sub_template and removed some unsed globals

Signed-off-by: emanuele <ac2faa8b943b3fcadaf05ed2541f4eebde440ed7@gmail.com>

Ant59/Elkarte,Ant59/Elkarte,joshuaadickerson/Elkarte2,joshuaadickerson/Elkarte2,StealthWombat/How-to-fork-an-Elk,emanuele45/Dialogo,StealthWombat/How-to-fork-an-Elk,elkarte/Elkarte,Ant59/Elkarte,wizardaf/Elkarte,nwsw/Elkarte,interlab/Elkarte,wizardaf/Elkarte,Spuds/Elkarte,nwsw/Elkarte,wizardaf/Elkarte,elkarte/Elkarte,joshuaadickerson/Elkarte2,StealthWombat/How-to-fork-an-Elk,StealthWombat/How-to-fork-an-Elk,Spuds/Elkarte,interlab/Elkarte,wizardaf/Elkarte,Spuds/Elkarte,interlab/Elkarte,emanuele45/Dialogo,elkarte/Elkarte,nwsw/Elkarte,joshuaadickerson/Elkarte2,emanuele45/Dialogo