{"action":"created","comment":{"url":"https://api.github.com/repos/iamfat/qf/pulls/comments/22697969","id":22697969,"diff_hunk":"@@ -97,21 +97,27 @@ function __toString(){\n \t\t$locale = Config::get('system.locale');\n \t\t\n         if (isset($GLOBALS['view_map']) && is_array($GLOBALS['view_map'])) {\n+\n             $view_map = $GLOBALS['view_map'];\n+\n             if ($category && isset($view_map[\"$category:$path@$locale\"])) {\n                 $_path = $view_map[\"$category:$path@$locale\"];\n-            } elseif ($category && isset($view_map[\"$category:$path\"])) {","path":"libraries/view.php","position":9,"original_position":9,"commit_id":"6b943b321482e180869baf964012d2bcdecb14d2","original_commit_id":"6b943b321482e180869baf964012d2bcdecb14d2","user":{"login":"iamfat","id":724105,"avatar_url":"https://avatars.githubusercontent.com/u/724105?v=3","gravatar_id":"","url":"https://api.github.com/users/iamfat","html_url":"https://github.com/iamfat","followers_url":"https://api.github.com/users/iamfat/followers","following_url":"https://api.github.com/users/iamfat/following{/other_user}","gists_url":"https://api.github.com/users/iamfat/gists{/gist_id}","starred_url":"https://api.github.com/users/iamfat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamfat/subscriptions","organizations_url":"https://api.github.com/users/iamfat/orgs","repos_url":"https://api.github.com/users/iamfat/repos","events_url":"https://api.github.com/users/iamfat/events{/privacy}","received_events_url":"https://api.github.com/users/iamfat/received_events","type":"User","site_admin":false},"body":"恩 这个是我们lims2/qf遵循的代码风格, 在新Gini框架采用的PSR-2的风格中则采用了 `} elseif () {` 这样的风格，请注意","created_at":"2015-01-09T02:01:05Z","updated_at":"2015-01-09T02:01:05Z","html_url":"https://github.com/iamfat/qf/pull/19#discussion_r22697969","pull_request_url":"https://api.github.com/repos/iamfat/qf/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/iamfat/qf/pulls/comments/22697969"},"html":{"href":"https://github.com/iamfat/qf/pull/19#discussion_r22697969"},"pull_request":{"href":"https://api.github.com/repos/iamfat/qf/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/iamfat/qf/pulls/19","id":27075081,"html_url":"https://github.com/iamfat/qf/pull/19","diff_url":"https://github.com/iamfat/qf/pull/19.diff","patch_url":"https://github.com/iamfat/qf/pull/19.patch","issue_url":"https://api.github.com/repos/iamfat/qf/issues/19","number":19,"state":"open","locked":false,"title":"修改 class_map 加载不到后不自动继续寻找的 bug","user":{"login":"stenote","id":1109648,"avatar_url":"https://avatars.githubusercontent.com/u/1109648?v=3","gravatar_id":"","url":"https://api.github.com/users/stenote","html_url":"https://github.com/stenote","followers_url":"https://api.github.com/users/stenote/followers","following_url":"https://api.github.com/users/stenote/following{/other_user}","gists_url":"https://api.github.com/users/stenote/gists{/gist_id}","starred_url":"https://api.github.com/users/stenote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stenote/subscriptions","organizations_url":"https://api.github.com/users/stenote/orgs","repos_url":"https://api.github.com/users/stenote/repos","events_url":"https://api.github.com/users/stenote/events{/privacy}","received_events_url":"https://api.github.com/users/stenote/received_events","type":"User","site_admin":false},"body":"修改 class_map 加载不到后不自动继续寻找的 bug\r\n调整 views_map 加载的 if elseif 代码格式","created_at":"2015-01-09T01:47:12Z","updated_at":"2015-01-09T02:01:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb0ac142b01dc0e26f409e51aa1147a618de2eb7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iamfat/qf/pulls/19/commits","review_comments_url":"https://api.github.com/repos/iamfat/qf/pulls/19/comments","review_comment_url":"https://api.github.com/repos/iamfat/qf/pulls/comments/{number}","comments_url":"https://api.github.com/repos/iamfat/qf/issues/19/comments","statuses_url":"https://api.github.com/repos/iamfat/qf/statuses/6b943b321482e180869baf964012d2bcdecb14d2","head":{"label":"stenote:master","ref":"master","sha":"6b943b321482e180869baf964012d2bcdecb14d2","user":{"login":"stenote","id":1109648,"avatar_url":"https://avatars.githubusercontent.com/u/1109648?v=3","gravatar_id":"","url":"https://api.github.com/users/stenote","html_url":"https://github.com/stenote","followers_url":"https://api.github.com/users/stenote/followers","following_url":"https://api.github.com/users/stenote/following{/other_user}","gists_url":"https://api.github.com/users/stenote/gists{/gist_id}","starred_url":"https://api.github.com/users/stenote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stenote/subscriptions","organizations_url":"https://api.github.com/users/stenote/orgs","repos_url":"https://api.github.com/users/stenote/repos","events_url":"https://api.github.com/users/stenote/events{/privacy}","received_events_url":"https://api.github.com/users/stenote/received_events","type":"User","site_admin":false},"repo":{"id":28950683,"name":"qf","full_name":"stenote/qf","owner":{"login":"stenote","id":1109648,"avatar_url":"https://avatars.githubusercontent.com/u/1109648?v=3","gravatar_id":"","url":"https://api.github.com/users/stenote","html_url":"https://github.com/stenote","followers_url":"https://api.github.com/users/stenote/followers","following_url":"https://api.github.com/users/stenote/following{/other_user}","gists_url":"https://api.github.com/users/stenote/gists{/gist_id}","starred_url":"https://api.github.com/users/stenote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stenote/subscriptions","organizations_url":"https://api.github.com/users/stenote/orgs","repos_url":"https://api.github.com/users/stenote/repos","events_url":"https://api.github.com/users/stenote/events{/privacy}","received_events_url":"https://api.github.com/users/stenote/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stenote/qf","description":"Q PHP Framework (DEPRECATED)","fork":true,"url":"https://api.github.com/repos/stenote/qf","forks_url":"https://api.github.com/repos/stenote/qf/forks","keys_url":"https://api.github.com/repos/stenote/qf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stenote/qf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stenote/qf/teams","hooks_url":"https://api.github.com/repos/stenote/qf/hooks","issue_events_url":"https://api.github.com/repos/stenote/qf/issues/events{/number}","events_url":"https://api.github.com/repos/stenote/qf/events","assignees_url":"https://api.github.com/repos/stenote/qf/assignees{/user}","branches_url":"https://api.github.com/repos/stenote/qf/branches{/branch}","tags_url":"https://api.github.com/repos/stenote/qf/tags","blobs_url":"https://api.github.com/repos/stenote/qf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stenote/qf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stenote/qf/git/refs{/sha}","trees_url":"https://api.github.com/repos/stenote/qf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stenote/qf/statuses/{sha}","languages_url":"https://api.github.com/repos/stenote/qf/languages","stargazers_url":"https://api.github.com/repos/stenote/qf/stargazers","contributors_url":"https://api.github.com/repos/stenote/qf/contributors","subscribers_url":"https://api.github.com/repos/stenote/qf/subscribers","subscription_url":"https://api.github.com/repos/stenote/qf/subscription","commits_url":"https://api.github.com/repos/stenote/qf/commits{/sha}","git_commits_url":"https://api.github.com/repos/stenote/qf/git/commits{/sha}","comments_url":"https://api.github.com/repos/stenote/qf/comments{/number}","issue_comment_url":"https://api.github.com/repos/stenote/qf/issues/comments/{number}","contents_url":"https://api.github.com/repos/stenote/qf/contents/{+path}","compare_url":"https://api.github.com/repos/stenote/qf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stenote/qf/merges","archive_url":"https://api.github.com/repos/stenote/qf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stenote/qf/downloads","issues_url":"https://api.github.com/repos/stenote/qf/issues{/number}","pulls_url":"https://api.github.com/repos/stenote/qf/pulls{/number}","milestones_url":"https://api.github.com/repos/stenote/qf/milestones{/number}","notifications_url":"https://api.github.com/repos/stenote/qf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stenote/qf/labels{/name}","releases_url":"https://api.github.com/repos/stenote/qf/releases{/id}","created_at":"2015-01-08T05:35:50Z","updated_at":"2015-01-09T01:45:45Z","pushed_at":"2015-01-09T01:45:45Z","git_url":"git://github.com/stenote/qf.git","ssh_url":"git@github.com:stenote/qf.git","clone_url":"https://github.com/stenote/qf.git","svn_url":"https://github.com/stenote/qf","homepage":null,"size":518,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"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":"master"}},"base":{"label":"iamfat:master","ref":"master","sha":"7105a497e04a53843157b76e2eec262cf7b68450","user":{"login":"iamfat","id":724105,"avatar_url":"https://avatars.githubusercontent.com/u/724105?v=3","gravatar_id":"","url":"https://api.github.com/users/iamfat","html_url":"https://github.com/iamfat","followers_url":"https://api.github.com/users/iamfat/followers","following_url":"https://api.github.com/users/iamfat/following{/other_user}","gists_url":"https://api.github.com/users/iamfat/gists{/gist_id}","starred_url":"https://api.github.com/users/iamfat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamfat/subscriptions","organizations_url":"https://api.github.com/users/iamfat/orgs","repos_url":"https://api.github.com/users/iamfat/repos","events_url":"https://api.github.com/users/iamfat/events{/privacy}","received_events_url":"https://api.github.com/users/iamfat/received_events","type":"User","site_admin":false},"repo":{"id":19057792,"name":"qf","full_name":"iamfat/qf","owner":{"login":"iamfat","id":724105,"avatar_url":"https://avatars.githubusercontent.com/u/724105?v=3","gravatar_id":"","url":"https://api.github.com/users/iamfat","html_url":"https://github.com/iamfat","followers_url":"https://api.github.com/users/iamfat/followers","following_url":"https://api.github.com/users/iamfat/following{/other_user}","gists_url":"https://api.github.com/users/iamfat/gists{/gist_id}","starred_url":"https://api.github.com/users/iamfat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamfat/subscriptions","organizations_url":"https://api.github.com/users/iamfat/orgs","repos_url":"https://api.github.com/users/iamfat/repos","events_url":"https://api.github.com/users/iamfat/events{/privacy}","received_events_url":"https://api.github.com/users/iamfat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/iamfat/qf","description":"Q PHP Framework (DEPRECATED)","fork":false,"url":"https://api.github.com/repos/iamfat/qf","forks_url":"https://api.github.com/repos/iamfat/qf/forks","keys_url":"https://api.github.com/repos/iamfat/qf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iamfat/qf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iamfat/qf/teams","hooks_url":"https://api.github.com/repos/iamfat/qf/hooks","issue_events_url":"https://api.github.com/repos/iamfat/qf/issues/events{/number}","events_url":"https://api.github.com/repos/iamfat/qf/events","assignees_url":"https://api.github.com/repos/iamfat/qf/assignees{/user}","branches_url":"https://api.github.com/repos/iamfat/qf/branches{/branch}","tags_url":"https://api.github.com/repos/iamfat/qf/tags","blobs_url":"https://api.github.com/repos/iamfat/qf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iamfat/qf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iamfat/qf/git/refs{/sha}","trees_url":"https://api.github.com/repos/iamfat/qf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iamfat/qf/statuses/{sha}","languages_url":"https://api.github.com/repos/iamfat/qf/languages","stargazers_url":"https://api.github.com/repos/iamfat/qf/stargazers","contributors_url":"https://api.github.com/repos/iamfat/qf/contributors","subscribers_url":"https://api.github.com/repos/iamfat/qf/subscribers","subscription_url":"https://api.github.com/repos/iamfat/qf/subscription","commits_url":"https://api.github.com/repos/iamfat/qf/commits{/sha}","git_commits_url":"https://api.github.com/repos/iamfat/qf/git/commits{/sha}","comments_url":"https://api.github.com/repos/iamfat/qf/comments{/number}","issue_comment_url":"https://api.github.com/repos/iamfat/qf/issues/comments/{number}","contents_url":"https://api.github.com/repos/iamfat/qf/contents/{+path}","compare_url":"https://api.github.com/repos/iamfat/qf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iamfat/qf/merges","archive_url":"https://api.github.com/repos/iamfat/qf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iamfat/qf/downloads","issues_url":"https://api.github.com/repos/iamfat/qf/issues{/number}","pulls_url":"https://api.github.com/repos/iamfat/qf/pulls{/number}","milestones_url":"https://api.github.com/repos/iamfat/qf/milestones{/number}","notifications_url":"https://api.github.com/repos/iamfat/qf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iamfat/qf/labels{/name}","releases_url":"https://api.github.com/repos/iamfat/qf/releases{/id}","created_at":"2014-04-23T05:10:22Z","updated_at":"2015-01-08T06:20:24Z","pushed_at":"2015-01-08T06:20:24Z","git_url":"git://github.com/iamfat/qf.git","ssh_url":"git@github.com:iamfat/qf.git","clone_url":"https://github.com/iamfat/qf.git","svn_url":"https://github.com/iamfat/qf","homepage":null,"size":518,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iamfat/qf/pulls/19"},"html":{"href":"https://github.com/iamfat/qf/pull/19"},"issue":{"href":"https://api.github.com/repos/iamfat/qf/issues/19"},"comments":{"href":"https://api.github.com/repos/iamfat/qf/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/iamfat/qf/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/iamfat/qf/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/iamfat/qf/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/iamfat/qf/statuses/6b943b321482e180869baf964012d2bcdecb14d2"}}}}