Kirby Google Maps Plugin Error

I found the googlemap snippet on the docs from @bastianallgeier.
But now I got the errormessage: Fatal error: Class ‘g’ not found in …
Is this Plugin working with Kirby2?


Could you post a link to the snippet?

Sorry, I forgot to post the link.

Just from looking at the date of creation, that snippet is in fact pretty old. I’ll try to have a closer look. The bit causing the error is right at the beginning, g::get(), this is the “Globals” class that was present in Kirby 1. Apart from that, the Google Maps API is currently at v3.