[ticket/12262] Also find vars array when it's defined in the trigger_event()

PHPBB3-12262
[ticket/12262] Fix location list for acp events with "Locations:"

PHPBB3-12262
[ticket/12262] Do not use getExtension()

The method is php 5.3.6+ only.

PHPBB3-12262
[ticket/12262] Do not use inline assignments

PHPBB3-12262
Merge pull request #2111 from nickvergessen/ticket/12262

[ticket/12262] Fix event exporter

* nickvergessen/ticket/12262:
  [ticket/12262] Do not use inline assignments
  [ticket/12262] Do not use getExtension()
  [ticket/12262] Fix location list for acp events with "Locations:"
  [ticket/12262] Also find vars array when it's defined in the trigger_event()