{"action":"opened","issue":{"url":"https://api.github.com/repos/apeisa/UserGroups/issues/45","repository_url":"https://api.github.com/repos/apeisa/UserGroups","labels_url":"https://api.github.com/repos/apeisa/UserGroups/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/apeisa/UserGroups/issues/45/comments","events_url":"https://api.github.com/repos/apeisa/UserGroups/issues/45/events","html_url":"https://github.com/apeisa/UserGroups/issues/45","id":149685656,"number":45,"title":"PW3 compatibility with new PagesType constructor","user":{"login":"BitPoet","id":3358724,"avatar_url":"https://avatars.githubusercontent.com/u/3358724?v=3","gravatar_id":"","url":"https://api.github.com/users/BitPoet","html_url":"https://github.com/BitPoet","followers_url":"https://api.github.com/users/BitPoet/followers","following_url":"https://api.github.com/users/BitPoet/following{/other_user}","gists_url":"https://api.github.com/users/BitPoet/gists{/gist_id}","starred_url":"https://api.github.com/users/BitPoet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BitPoet/subscriptions","organizations_url":"https://api.github.com/users/BitPoet/orgs","repos_url":"https://api.github.com/users/BitPoet/repos","events_url":"https://api.github.com/users/BitPoet/events{/privacy}","received_events_url":"https://api.github.com/users/BitPoet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-20T07:39:48Z","updated_at":"2016-04-20T07:39:48Z","closed_at":null,"body":"The constructor for PagesType takes the current ProcessWire instance as additional first argument in PW3. Thus, [the init method of UserGroupsHooks](https://github.com/apeisa/UserGroups/blob/master/UserGroupsHooks.module#L47) needs to be changed to\r\n`$groups = new PagesType($this->wire, $template, $parent->id);`\r\n\r\n"}}