Move template variable assignment to correct place
Remove unused template variable assignment of files_sharing/template/public.php
Merge pull request #7105 from NCTU-NBA/pr-7098

Fix #7098