{"action":"created","issue":{"url":"https://api.github.com/repos/cubecart/v6/issues/1849","repository_url":"https://api.github.com/repos/cubecart/v6","labels_url":"https://api.github.com/repos/cubecart/v6/issues/1849/labels{/name}","comments_url":"https://api.github.com/repos/cubecart/v6/issues/1849/comments","events_url":"https://api.github.com/repos/cubecart/v6/issues/1849/events","html_url":"https://github.com/cubecart/v6/issues/1849","id":285721146,"number":1849,"title":"Code improvements","user":{"login":"Noodleyman","id":10614018,"avatar_url":"https://avatars1.githubusercontent.com/u/10614018?v=4","gravatar_id":"","url":"https://api.github.com/users/Noodleyman","html_url":"https://github.com/Noodleyman","followers_url":"https://api.github.com/users/Noodleyman/followers","following_url":"https://api.github.com/users/Noodleyman/following{/other_user}","gists_url":"https://api.github.com/users/Noodleyman/gists{/gist_id}","starred_url":"https://api.github.com/users/Noodleyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Noodleyman/subscriptions","organizations_url":"https://api.github.com/users/Noodleyman/orgs","repos_url":"https://api.github.com/users/Noodleyman/repos","events_url":"https://api.github.com/users/Noodleyman/events{/privacy}","received_events_url":"https://api.github.com/users/Noodleyman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"abrookbanks","id":4520803,"avatar_url":"https://avatars0.githubusercontent.com/u/4520803?v=4","gravatar_id":"","url":"https://api.github.com/users/abrookbanks","html_url":"https://github.com/abrookbanks","followers_url":"https://api.github.com/users/abrookbanks/followers","following_url":"https://api.github.com/users/abrookbanks/following{/other_user}","gists_url":"https://api.github.com/users/abrookbanks/gists{/gist_id}","starred_url":"https://api.github.com/users/abrookbanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrookbanks/subscriptions","organizations_url":"https://api.github.com/users/abrookbanks/orgs","repos_url":"https://api.github.com/users/abrookbanks/repos","events_url":"https://api.github.com/users/abrookbanks/events{/privacy}","received_events_url":"https://api.github.com/users/abrookbanks/received_events","type":"User","site_admin":false},"assignees":[{"login":"abrookbanks","id":4520803,"avatar_url":"https://avatars0.githubusercontent.com/u/4520803?v=4","gravatar_id":"","url":"https://api.github.com/users/abrookbanks","html_url":"https://github.com/abrookbanks","followers_url":"https://api.github.com/users/abrookbanks/followers","following_url":"https://api.github.com/users/abrookbanks/following{/other_user}","gists_url":"https://api.github.com/users/abrookbanks/gists{/gist_id}","starred_url":"https://api.github.com/users/abrookbanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrookbanks/subscriptions","organizations_url":"https://api.github.com/users/abrookbanks/orgs","repos_url":"https://api.github.com/users/abrookbanks/repos","events_url":"https://api.github.com/users/abrookbanks/events{/privacy}","received_events_url":"https://api.github.com/users/abrookbanks/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-01-03T15:34:11Z","updated_at":"2018-02-22T08:50:03Z","closed_at":null,"author_association":"NONE","body":"in gui.class.php  the following placement of hooks allows modules to add scripts/css for skins. However, it expects the module/hook to create the array. if you have two or more modules installed which create the array they conflict.\r\n\r\nThis should be resolved by creating the array in the class file, then allowing modules to add to it.\r\n```\r\n\t\t\tforeach ($GLOBALS['hooks']->load('class.gui.css') as $hook) include $hook;\r\n\t\t\tif (isset($css) && !empty($css) && is_array($css)) {\r\n\t\t\t\t$GLOBALS['smarty']->assign('CSS', $css);\r\n\t\t\t}\r\n\r\n\t\t\t// <head> JS\r\n\t\t\tforeach ($GLOBALS['hooks']->load('class.gui.head_js') as $hook) include $hook;\r\n\t\t\tif (isset($head_js) && !empty($head_js) && is_array($head_js)) {\r\n\t\t\t\t$GLOBALS['smarty']->assign('HEAD_JS', $head_js);\r\n\t\t\t}\r\n\r\n\t\t\t// <body> JS (Top)\r\n            foreach ($GLOBALS['hooks']->load('class.gui.body_js_top') as $hook) include $hook;\r\n            if (isset($body_js_top) && !empty($body_js_top) && is_array($body_js_top)) {\r\n                $GLOBALS['smarty']->assign('BODY_JS_TOP', $body_js_top);\r\n            }\r\n\r\n\t\t\t// <body> JS\r\n\t\t\tforeach ($GLOBALS['hooks']->load('class.gui.body_js') as $hook) include $hook;\r\n\t\t\tif (isset($body_js) && !empty($body_js) && is_array($body_js)) {\r\n\t\t\t\t$GLOBALS['smarty']->assign('BODY_JS', $body_js);\r\n\t\t\t}\r\n```"},"comment":{"url":"https://api.github.com/repos/cubecart/v6/issues/comments/367608435","html_url":"https://github.com/cubecart/v6/issues/1849#issuecomment-367608435","issue_url":"https://api.github.com/repos/cubecart/v6/issues/1849","id":367608435,"user":{"login":"abrookbanks","id":4520803,"avatar_url":"https://avatars0.githubusercontent.com/u/4520803?v=4","gravatar_id":"","url":"https://api.github.com/users/abrookbanks","html_url":"https://github.com/abrookbanks","followers_url":"https://api.github.com/users/abrookbanks/followers","following_url":"https://api.github.com/users/abrookbanks/following{/other_user}","gists_url":"https://api.github.com/users/abrookbanks/gists{/gist_id}","starred_url":"https://api.github.com/users/abrookbanks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abrookbanks/subscriptions","organizations_url":"https://api.github.com/users/abrookbanks/orgs","repos_url":"https://api.github.com/users/abrookbanks/repos","events_url":"https://api.github.com/users/abrookbanks/events{/privacy}","received_events_url":"https://api.github.com/users/abrookbanks/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T08:50:03Z","updated_at":"2018-02-22T08:50:03Z","author_association":"OWNER","body":"Reopening as I agree that this code can be improved."}}
{"actor":{"display_login":"abrookbanks"}}