follow up from review #4663
Merge pull request #4752 from openscholar/4663-themefunc

follow up from review #4663