{"action":"created","comment":{"url":"https://api.github.com/repos/contao/core/pulls/comments/54393327","id":54393327,"diff_hunk":"@@ -203,6 +203,34 @@ public static function findPublishedByPidAndColumn($intPid, $strColumn, array $a\n \n \n \t/**\n+\t * Find all published articles with teaser by their parent ID\n+\t *\n+\t * @param integer $intPid     The page ID\n+\t * @param array   $arrOptions An optional options array\n+\t *\n+\t * @return \\Model\\Collection|\\ArticleModel[]|\\ArticleModel|null A collection of models or null if there are no articles in the given column\n+\t */\n+\tpublic static function findPublishedWithTeaserByPid($intPid, array $arrOptions=array())\n+\t{\n+\t\t$t = static::$strTable;\n+\t\t$arrColumns = array(\"$t.pid=? AND $t.showTeaser=1\");\n+\n+\t\tif (!BE_USER_LOGGED_IN)","path":"system/modules/core/models/ArticleModel.php","position":16,"original_position":16,"commit_id":"001fcd4b57f5432243ded18a9e4926be117f8b92","original_commit_id":"db5b8ac9df1f4fbd751032848a2bfcec7954d1a3","user":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"body":"Also be aware that your current comparison will result in a wrong result if the constant is not defined (e.g. for a custom entry point).","created_at":"2016-02-29T10:38:57Z","updated_at":"2016-02-29T10:38:57Z","html_url":"https://github.com/contao/core/pull/8238#discussion_r54393327","pull_request_url":"https://api.github.com/repos/contao/core/pulls/8238","_links":{"self":{"href":"https://api.github.com/repos/contao/core/pulls/comments/54393327"},"html":{"href":"https://github.com/contao/core/pull/8238#discussion_r54393327"},"pull_request":{"href":"https://api.github.com/repos/contao/core/pulls/8238"}}},"pull_request":{"url":"https://api.github.com/repos/contao/core/pulls/8238","id":60859660,"html_url":"https://github.com/contao/core/pull/8238","diff_url":"https://github.com/contao/core/pull/8238.diff","patch_url":"https://github.com/contao/core/pull/8238.patch","issue_url":"https://api.github.com/repos/contao/core/issues/8238","number":8238,"state":"open","locked":false,"title":"[RTM] Always fix the domain and language when generating URLs","user":{"login":"leofeyer","id":1192057,"avatar_url":"https://avatars.githubusercontent.com/u/1192057?v=3","gravatar_id":"","url":"https://api.github.com/users/leofeyer","html_url":"https://github.com/leofeyer","followers_url":"https://api.github.com/users/leofeyer/followers","following_url":"https://api.github.com/users/leofeyer/following{/other_user}","gists_url":"https://api.github.com/users/leofeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/leofeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofeyer/subscriptions","organizations_url":"https://api.github.com/users/leofeyer/orgs","repos_url":"https://api.github.com/users/leofeyer/repos","events_url":"https://api.github.com/users/leofeyer/events{/privacy}","received_events_url":"https://api.github.com/users/leofeyer/received_events","type":"User","site_admin":false},"body":"This PR fixed #8204 and all duplicate tickets for good (hopefully).","created_at":"2016-02-26T15:41:38Z","updated_at":"2016-02-29T10:38:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03d9669af05027100e92cd0433570f72af518c27","assignee":{"login":"leofeyer","id":1192057,"avatar_url":"https://avatars.githubusercontent.com/u/1192057?v=3","gravatar_id":"","url":"https://api.github.com/users/leofeyer","html_url":"https://github.com/leofeyer","followers_url":"https://api.github.com/users/leofeyer/followers","following_url":"https://api.github.com/users/leofeyer/following{/other_user}","gists_url":"https://api.github.com/users/leofeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/leofeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofeyer/subscriptions","organizations_url":"https://api.github.com/users/leofeyer/orgs","repos_url":"https://api.github.com/users/leofeyer/repos","events_url":"https://api.github.com/users/leofeyer/events{/privacy}","received_events_url":"https://api.github.com/users/leofeyer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/contao/core/milestones/119","html_url":"https://github.com/contao/core/milestones/3.5.7","labels_url":"https://api.github.com/repos/contao/core/milestones/119/labels","id":1432398,"number":119,"title":"3.5.7","description":"Contao 3.5.7 (bugfix release)","creator":{"login":"leofeyer","id":1192057,"avatar_url":"https://avatars.githubusercontent.com/u/1192057?v=3","gravatar_id":"","url":"https://api.github.com/users/leofeyer","html_url":"https://github.com/leofeyer","followers_url":"https://api.github.com/users/leofeyer/followers","following_url":"https://api.github.com/users/leofeyer/following{/other_user}","gists_url":"https://api.github.com/users/leofeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/leofeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofeyer/subscriptions","organizations_url":"https://api.github.com/users/leofeyer/orgs","repos_url":"https://api.github.com/users/leofeyer/repos","events_url":"https://api.github.com/users/leofeyer/events{/privacy}","received_events_url":"https://api.github.com/users/leofeyer/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":29,"state":"open","created_at":"2015-11-27T12:30:05Z","updated_at":"2016-02-29T08:45:42Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/contao/core/pulls/8238/commits","review_comments_url":"https://api.github.com/repos/contao/core/pulls/8238/comments","review_comment_url":"https://api.github.com/repos/contao/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/contao/core/issues/8238/comments","statuses_url":"https://api.github.com/repos/contao/core/statuses/001fcd4b57f5432243ded18a9e4926be117f8b92","head":{"label":"contao:hotfix/fix-frontend-urls","ref":"hotfix/fix-frontend-urls","sha":"001fcd4b57f5432243ded18a9e4926be117f8b92","user":{"login":"contao","id":1206136,"avatar_url":"https://avatars.githubusercontent.com/u/1206136?v=3","gravatar_id":"","url":"https://api.github.com/users/contao","html_url":"https://github.com/contao","followers_url":"https://api.github.com/users/contao/followers","following_url":"https://api.github.com/users/contao/following{/other_user}","gists_url":"https://api.github.com/users/contao/gists{/gist_id}","starred_url":"https://api.github.com/users/contao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contao/subscriptions","organizations_url":"https://api.github.com/users/contao/orgs","repos_url":"https://api.github.com/users/contao/repos","events_url":"https://api.github.com/users/contao/events{/privacy}","received_events_url":"https://api.github.com/users/contao/received_events","type":"Organization","site_admin":false},"repo":{"id":2875825,"name":"core","full_name":"contao/core","owner":{"login":"contao","id":1206136,"avatar_url":"https://avatars.githubusercontent.com/u/1206136?v=3","gravatar_id":"","url":"https://api.github.com/users/contao","html_url":"https://github.com/contao","followers_url":"https://api.github.com/users/contao/followers","following_url":"https://api.github.com/users/contao/following{/other_user}","gists_url":"https://api.github.com/users/contao/gists{/gist_id}","starred_url":"https://api.github.com/users/contao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contao/subscriptions","organizations_url":"https://api.github.com/users/contao/orgs","repos_url":"https://api.github.com/users/contao/repos","events_url":"https://api.github.com/users/contao/events{/privacy}","received_events_url":"https://api.github.com/users/contao/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contao/core","description":"Contao Open Source CMS","fork":false,"url":"https://api.github.com/repos/contao/core","forks_url":"https://api.github.com/repos/contao/core/forks","keys_url":"https://api.github.com/repos/contao/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contao/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contao/core/teams","hooks_url":"https://api.github.com/repos/contao/core/hooks","issue_events_url":"https://api.github.com/repos/contao/core/issues/events{/number}","events_url":"https://api.github.com/repos/contao/core/events","assignees_url":"https://api.github.com/repos/contao/core/assignees{/user}","branches_url":"https://api.github.com/repos/contao/core/branches{/branch}","tags_url":"https://api.github.com/repos/contao/core/tags","blobs_url":"https://api.github.com/repos/contao/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contao/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contao/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/contao/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contao/core/statuses/{sha}","languages_url":"https://api.github.com/repos/contao/core/languages","stargazers_url":"https://api.github.com/repos/contao/core/stargazers","contributors_url":"https://api.github.com/repos/contao/core/contributors","subscribers_url":"https://api.github.com/repos/contao/core/subscribers","subscription_url":"https://api.github.com/repos/contao/core/subscription","commits_url":"https://api.github.com/repos/contao/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/contao/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/contao/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/contao/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/contao/core/contents/{+path}","compare_url":"https://api.github.com/repos/contao/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contao/core/merges","archive_url":"https://api.github.com/repos/contao/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contao/core/downloads","issues_url":"https://api.github.com/repos/contao/core/issues{/number}","pulls_url":"https://api.github.com/repos/contao/core/pulls{/number}","milestones_url":"https://api.github.com/repos/contao/core/milestones{/number}","notifications_url":"https://api.github.com/repos/contao/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contao/core/labels{/name}","releases_url":"https://api.github.com/repos/contao/core/releases{/id}","deployments_url":"https://api.github.com/repos/contao/core/deployments","created_at":"2011-11-29T15:24:38Z","updated_at":"2016-02-28T00:09:16Z","pushed_at":"2016-02-29T10:03:21Z","git_url":"git://github.com/contao/core.git","ssh_url":"git@github.com:contao/core.git","clone_url":"https://github.com/contao/core.git","svn_url":"https://github.com/contao/core","homepage":"","size":67141,"stargazers_count":496,"watchers_count":496,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":239,"mirror_url":null,"open_issues_count":528,"forks":239,"open_issues":528,"watchers":496,"default_branch":"master"}},"base":{"label":"contao:hotfix/3.5.7","ref":"hotfix/3.5.7","sha":"655bb5c10c3668fb90e8b0f304a227067ebfb1a1","user":{"login":"contao","id":1206136,"avatar_url":"https://avatars.githubusercontent.com/u/1206136?v=3","gravatar_id":"","url":"https://api.github.com/users/contao","html_url":"https://github.com/contao","followers_url":"https://api.github.com/users/contao/followers","following_url":"https://api.github.com/users/contao/following{/other_user}","gists_url":"https://api.github.com/users/contao/gists{/gist_id}","starred_url":"https://api.github.com/users/contao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contao/subscriptions","organizations_url":"https://api.github.com/users/contao/orgs","repos_url":"https://api.github.com/users/contao/repos","events_url":"https://api.github.com/users/contao/events{/privacy}","received_events_url":"https://api.github.com/users/contao/received_events","type":"Organization","site_admin":false},"repo":{"id":2875825,"name":"core","full_name":"contao/core","owner":{"login":"contao","id":1206136,"avatar_url":"https://avatars.githubusercontent.com/u/1206136?v=3","gravatar_id":"","url":"https://api.github.com/users/contao","html_url":"https://github.com/contao","followers_url":"https://api.github.com/users/contao/followers","following_url":"https://api.github.com/users/contao/following{/other_user}","gists_url":"https://api.github.com/users/contao/gists{/gist_id}","starred_url":"https://api.github.com/users/contao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contao/subscriptions","organizations_url":"https://api.github.com/users/contao/orgs","repos_url":"https://api.github.com/users/contao/repos","events_url":"https://api.github.com/users/contao/events{/privacy}","received_events_url":"https://api.github.com/users/contao/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contao/core","description":"Contao Open Source CMS","fork":false,"url":"https://api.github.com/repos/contao/core","forks_url":"https://api.github.com/repos/contao/core/forks","keys_url":"https://api.github.com/repos/contao/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contao/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contao/core/teams","hooks_url":"https://api.github.com/repos/contao/core/hooks","issue_events_url":"https://api.github.com/repos/contao/core/issues/events{/number}","events_url":"https://api.github.com/repos/contao/core/events","assignees_url":"https://api.github.com/repos/contao/core/assignees{/user}","branches_url":"https://api.github.com/repos/contao/core/branches{/branch}","tags_url":"https://api.github.com/repos/contao/core/tags","blobs_url":"https://api.github.com/repos/contao/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contao/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contao/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/contao/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contao/core/statuses/{sha}","languages_url":"https://api.github.com/repos/contao/core/languages","stargazers_url":"https://api.github.com/repos/contao/core/stargazers","contributors_url":"https://api.github.com/repos/contao/core/contributors","subscribers_url":"https://api.github.com/repos/contao/core/subscribers","subscription_url":"https://api.github.com/repos/contao/core/subscription","commits_url":"https://api.github.com/repos/contao/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/contao/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/contao/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/contao/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/contao/core/contents/{+path}","compare_url":"https://api.github.com/repos/contao/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contao/core/merges","archive_url":"https://api.github.com/repos/contao/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contao/core/downloads","issues_url":"https://api.github.com/repos/contao/core/issues{/number}","pulls_url":"https://api.github.com/repos/contao/core/pulls{/number}","milestones_url":"https://api.github.com/repos/contao/core/milestones{/number}","notifications_url":"https://api.github.com/repos/contao/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contao/core/labels{/name}","releases_url":"https://api.github.com/repos/contao/core/releases{/id}","deployments_url":"https://api.github.com/repos/contao/core/deployments","created_at":"2011-11-29T15:24:38Z","updated_at":"2016-02-28T00:09:16Z","pushed_at":"2016-02-29T10:03:21Z","git_url":"git://github.com/contao/core.git","ssh_url":"git@github.com:contao/core.git","clone_url":"https://github.com/contao/core.git","svn_url":"https://github.com/contao/core","homepage":"","size":67141,"stargazers_count":496,"watchers_count":496,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":239,"mirror_url":null,"open_issues_count":528,"forks":239,"open_issues":528,"watchers":496,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/contao/core/pulls/8238"},"html":{"href":"https://github.com/contao/core/pull/8238"},"issue":{"href":"https://api.github.com/repos/contao/core/issues/8238"},"comments":{"href":"https://api.github.com/repos/contao/core/issues/8238/comments"},"review_comments":{"href":"https://api.github.com/repos/contao/core/pulls/8238/comments"},"review_comment":{"href":"https://api.github.com/repos/contao/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/contao/core/pulls/8238/commits"},"statuses":{"href":"https://api.github.com/repos/contao/core/statuses/001fcd4b57f5432243ded18a9e4926be117f8b92"}}}}