unable to get theme name in function stat_block()

simple fix for showing of icon_log.gif in 2.1 wont work by default.
You just need to add $g on global list. Since it's a simple change, I'll push a fix, you can close this pull request.

Thanks!