{"action":"closed","number":8611,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/8611","id":52897322,"html_url":"https://github.com/joomla/joomla-cms/pull/8611","diff_url":"https://github.com/joomla/joomla-cms/pull/8611.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/8611.patch","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8611","number":8611,"state":"closed","locked":false,"title":"JApplicationSite getTemplate returns an incomplete class after a set…","user":{"login":"AndyTheFactory","id":863810,"avatar_url":"https://avatars3.githubusercontent.com/u/863810?v=3","gravatar_id":"","url":"https://api.github.com/users/AndyTheFactory","html_url":"https://github.com/AndyTheFactory","followers_url":"https://api.github.com/users/AndyTheFactory/followers","following_url":"https://api.github.com/users/AndyTheFactory/following{/other_user}","gists_url":"https://api.github.com/users/AndyTheFactory/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyTheFactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyTheFactory/subscriptions","organizations_url":"https://api.github.com/users/AndyTheFactory/orgs","repos_url":"https://api.github.com/users/AndyTheFactory/repos","events_url":"https://api.github.com/users/AndyTheFactory/events{/privacy}","received_events_url":"https://api.github.com/users/AndyTheFactory/received_events","type":"User","site_admin":false},"body":"…Template\r\n\r\n$app = JFactory::getApplication();\r\n    $t=$app->getTemplate(true);\r\n    var_dump($t);\r\n\r\nresults in\r\nobject(stdClass)#582 (4) {\r\n** [\"id\"]=>\r\nstring(2) \"7\"\r\n[\"home\"]=>\r\nstring(1) \"1\"**\r\n[\"template\"]=>\r\nstring(10) \"protostar\"\r\n[\"params\"]=>\r\nobject[....]\r\n}\r\n\r\nBut after a setTemplate, the same call has a different type of result\r\n\r\n$app = JFactory::getApplication();\r\n$app->setTemplate('beez3',null);\r\n    $t=$app->getTemplate(true);\r\n\r\nresults in\r\nobject(stdClass)#865 (2) {\r\n[\"template\"]=>\r\nstring(10) \"rt_anacron\"\r\n[\"params\"]=>\r\n..........\r\n}","created_at":"2015-12-07T20:37:18Z","updated_at":"2017-06-22T03:55:44Z","closed_at":"2017-06-22T03:55:44Z","merged_at":null,"merge_commit_sha":"5676254127cb52fc141ed6293c347c94008ee832","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/8611/commits","review_comments_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/8611/comments","review_comment_url":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/8611/comments","statuses_url":"https://api.github.com/repos/joomla/joomla-cms/statuses/c7b60cb061809b75f7e685d3fd6f1b5825ffa9fc","head":{"label":"AndyTheFactory:staging","ref":"staging","sha":"c7b60cb061809b75f7e685d3fd6f1b5825ffa9fc","user":{"login":"AndyTheFactory","id":863810,"avatar_url":"https://avatars3.githubusercontent.com/u/863810?v=3","gravatar_id":"","url":"https://api.github.com/users/AndyTheFactory","html_url":"https://github.com/AndyTheFactory","followers_url":"https://api.github.com/users/AndyTheFactory/followers","following_url":"https://api.github.com/users/AndyTheFactory/following{/other_user}","gists_url":"https://api.github.com/users/AndyTheFactory/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyTheFactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyTheFactory/subscriptions","organizations_url":"https://api.github.com/users/AndyTheFactory/orgs","repos_url":"https://api.github.com/users/AndyTheFactory/repos","events_url":"https://api.github.com/users/AndyTheFactory/events{/privacy}","received_events_url":"https://api.github.com/users/AndyTheFactory/received_events","type":"User","site_admin":false},"repo":{"id":31035607,"name":"joomla-cms","full_name":"AndyTheFactory/joomla-cms","owner":{"login":"AndyTheFactory","id":863810,"avatar_url":"https://avatars3.githubusercontent.com/u/863810?v=3","gravatar_id":"","url":"https://api.github.com/users/AndyTheFactory","html_url":"https://github.com/AndyTheFactory","followers_url":"https://api.github.com/users/AndyTheFactory/followers","following_url":"https://api.github.com/users/AndyTheFactory/following{/other_user}","gists_url":"https://api.github.com/users/AndyTheFactory/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyTheFactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyTheFactory/subscriptions","organizations_url":"https://api.github.com/users/AndyTheFactory/orgs","repos_url":"https://api.github.com/users/AndyTheFactory/repos","events_url":"https://api.github.com/users/AndyTheFactory/events{/privacy}","received_events_url":"https://api.github.com/users/AndyTheFactory/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AndyTheFactory/joomla-cms","description":"Home of the Joomla! Content Management System","fork":true,"url":"https://api.github.com/repos/AndyTheFactory/joomla-cms","forks_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/forks","keys_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/teams","hooks_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/events","assignees_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/tags","blobs_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/subscription","commits_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/merges","archive_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/downloads","issues_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/releases{/id}","deployments_url":"https://api.github.com/repos/AndyTheFactory/joomla-cms/deployments","created_at":"2015-02-19T20:37:35Z","updated_at":"2015-02-19T20:46:21Z","pushed_at":"2015-12-14T21:36:25Z","git_url":"git://github.com/AndyTheFactory/joomla-cms.git","ssh_url":"git@github.com:AndyTheFactory/joomla-cms.git","clone_url":"https://github.com/AndyTheFactory/joomla-cms.git","svn_url":"https://github.com/AndyTheFactory/joomla-cms","homepage":"http://joomla.org","size":0,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"staging"}},"base":{"label":"joomla:staging","ref":"staging","sha":"4b664109f77f70c4c3878afb70ca999e3efe4cbe","user":{"login":"joomla","id":751633,"avatar_url":"https://avatars0.githubusercontent.com/u/751633?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"repo":{"id":2464908,"name":"joomla-cms","full_name":"joomla/joomla-cms","owner":{"login":"joomla","id":751633,"avatar_url":"https://avatars0.githubusercontent.com/u/751633?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla","html_url":"https://github.com/joomla","followers_url":"https://api.github.com/users/joomla/followers","following_url":"https://api.github.com/users/joomla/following{/other_user}","gists_url":"https://api.github.com/users/joomla/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla/subscriptions","organizations_url":"https://api.github.com/users/joomla/orgs","repos_url":"https://api.github.com/users/joomla/repos","events_url":"https://api.github.com/users/joomla/events{/privacy}","received_events_url":"https://api.github.com/users/joomla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla/joomla-cms","description":"Home of the Joomla! Content Management System","fork":false,"url":"https://api.github.com/repos/joomla/joomla-cms","forks_url":"https://api.github.com/repos/joomla/joomla-cms/forks","keys_url":"https://api.github.com/repos/joomla/joomla-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla/joomla-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla/joomla-cms/teams","hooks_url":"https://api.github.com/repos/joomla/joomla-cms/hooks","issue_events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/events{/number}","events_url":"https://api.github.com/repos/joomla/joomla-cms/events","assignees_url":"https://api.github.com/repos/joomla/joomla-cms/assignees{/user}","branches_url":"https://api.github.com/repos/joomla/joomla-cms/branches{/branch}","tags_url":"https://api.github.com/repos/joomla/joomla-cms/tags","blobs_url":"https://api.github.com/repos/joomla/joomla-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla/joomla-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla/joomla-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla/joomla-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla/joomla-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla/joomla-cms/languages","stargazers_url":"https://api.github.com/repos/joomla/joomla-cms/stargazers","contributors_url":"https://api.github.com/repos/joomla/joomla-cms/contributors","subscribers_url":"https://api.github.com/repos/joomla/joomla-cms/subscribers","subscription_url":"https://api.github.com/repos/joomla/joomla-cms/subscription","commits_url":"https://api.github.com/repos/joomla/joomla-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla/joomla-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla/joomla-cms/contents/{+path}","compare_url":"https://api.github.com/repos/joomla/joomla-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla/joomla-cms/merges","archive_url":"https://api.github.com/repos/joomla/joomla-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla/joomla-cms/downloads","issues_url":"https://api.github.com/repos/joomla/joomla-cms/issues{/number}","pulls_url":"https://api.github.com/repos/joomla/joomla-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla/joomla-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla/joomla-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla/joomla-cms/labels{/name}","releases_url":"https://api.github.com/repos/joomla/joomla-cms/releases{/id}","deployments_url":"https://api.github.com/repos/joomla/joomla-cms/deployments","created_at":"2011-09-27T02:07:38Z","updated_at":"2017-06-20T18:25:54Z","pushed_at":"2017-06-22T00:04:55Z","git_url":"git://github.com/joomla/joomla-cms.git","ssh_url":"git@github.com:joomla/joomla-cms.git","clone_url":"https://github.com/joomla/joomla-cms.git","svn_url":"https://github.com/joomla/joomla-cms","homepage":"https://www.joomla.org","size":197877,"stargazers_count":2408,"watchers_count":2408,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2498,"mirror_url":null,"open_issues_count":805,"forks":2498,"open_issues":805,"watchers":2408,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/8611"},"html":{"href":"https://github.com/joomla/joomla-cms/pull/8611"},"issue":{"href":"https://api.github.com/repos/joomla/joomla-cms/issues/8611"},"comments":{"href":"https://api.github.com/repos/joomla/joomla-cms/issues/8611/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/8611/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla/joomla-cms/pulls/8611/commits"},"statuses":{"href":"https://api.github.com/repos/joomla/joomla-cms/statuses/c7b60cb061809b75f7e685d3fd6f1b5825ffa9fc"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":9,"review_comments":1,"maintainer_can_modify":false,"commits":3,"additions":2,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"joomla-cms-bot"}}