{"action":"created","comment":{"url":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/comments/129898688","pull_request_review_id":52716902,"id":129898688,"diff_hunk":"@@ -50,13 +51,28 @@\n \t print $Usage;\n \t exit(1);\n }\n+\n my $ldzf = abs_path($leftovers[0]);\n if (-d $ldzf && $ldzf =~ /LDZ/) { print \"\\nSelected study folder:\\t $ldzf\\n\" }\n else { print \"\\n\\tERROR: The target is not a directory or does not contain LDZ data!\\n\"; exit 33; }\n \n # 1.\n { package Settings; do \"$ENV{LORIS_CONFIG}/.loris_mri/$profile\" || exit}\n-my $get_dicom_info   = $Settings::get_dicom_info;\n+if (!@Settings::db) {\n+    print \"\\n\\tERROR: You don't have database settings in: \".\n+          \"$ENV{LORIS_CONFIG}/.loris_mri/$profile \\n\\n\";\n+    exit;\n+}\n+################################################################\n+######### Establish database connection ########################\n+################################################################\n+my $dbh = &DB::DBI::connect_to_db(@Settings::db);\n+print \"\\n==> Successfully connected to database \\n\";\n+\n+my $get_dicom_info   = &DB::DBI::getConfigSetting(\n+                        $dbh,'get_dicom_info'","path":"LDZfix.pl","position":32,"original_position":32,"commit_id":"744975d911ea32d0c474bb0cb676d658499009aa","original_commit_id":"744975d911ea32d0c474bb0cb676d658499009aa","user":{"login":"cmadjar","id":1402456,"avatar_url":"https://avatars0.githubusercontent.com/u/1402456?v=4","gravatar_id":"","url":"https://api.github.com/users/cmadjar","html_url":"https://github.com/cmadjar","followers_url":"https://api.github.com/users/cmadjar/followers","following_url":"https://api.github.com/users/cmadjar/following{/other_user}","gists_url":"https://api.github.com/users/cmadjar/gists{/gist_id}","starred_url":"https://api.github.com/users/cmadjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmadjar/subscriptions","organizations_url":"https://api.github.com/users/cmadjar/orgs","repos_url":"https://api.github.com/users/cmadjar/repos","events_url":"https://api.github.com/users/cmadjar/events{/privacy}","received_events_url":"https://api.github.com/users/cmadjar/received_events","type":"User","site_admin":false},"body":"update $dbh to be \\$dbh","created_at":"2017-07-27T16:59:45Z","updated_at":"2017-07-27T17:00:37Z","html_url":"https://github.com/aces/dicom-archive-tools/pull/45#discussion_r129898688","pull_request_url":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/comments/129898688"},"html":{"href":"https://github.com/aces/dicom-archive-tools/pull/45#discussion_r129898688"},"pull_request":{"href":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/45","id":110488327,"html_url":"https://github.com/aces/dicom-archive-tools/pull/45","diff_url":"https://github.com/aces/dicom-archive-tools/pull/45.diff","patch_url":"https://github.com/aces/dicom-archive-tools/pull/45.patch","issue_url":"https://api.github.com/repos/aces/dicom-archive-tools/issues/45","number":45,"state":"open","locked":false,"title":"Loris-MRI configurations moved to the front end from the $profile file: Redmine 8893","user":{"login":"MounaSafiHarab","id":15198379,"avatar_url":"https://avatars1.githubusercontent.com/u/15198379?v=4","gravatar_id":"","url":"https://api.github.com/users/MounaSafiHarab","html_url":"https://github.com/MounaSafiHarab","followers_url":"https://api.github.com/users/MounaSafiHarab/followers","following_url":"https://api.github.com/users/MounaSafiHarab/following{/other_user}","gists_url":"https://api.github.com/users/MounaSafiHarab/gists{/gist_id}","starred_url":"https://api.github.com/users/MounaSafiHarab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MounaSafiHarab/subscriptions","organizations_url":"https://api.github.com/users/MounaSafiHarab/orgs","repos_url":"https://api.github.com/users/MounaSafiHarab/repos","events_url":"https://api.github.com/users/MounaSafiHarab/events{/privacy}","received_events_url":"https://api.github.com/users/MounaSafiHarab/received_events","type":"User","site_admin":false},"body":"Related to:\r\nhttps://github.com/aces/Loris-MRI/pull/182\r\nand\r\nhttps://github.com/aces/Loris/pull/2649\r\n\r\nThese variables are now set in the Loris (front-end) Configuration module.","created_at":"2017-03-13T20:15:03Z","updated_at":"2017-07-27T17:00:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4dd46a3ad42ad0042d281eea272b4e33016a7052","assignee":{"login":"cmadjar","id":1402456,"avatar_url":"https://avatars0.githubusercontent.com/u/1402456?v=4","gravatar_id":"","url":"https://api.github.com/users/cmadjar","html_url":"https://github.com/cmadjar","followers_url":"https://api.github.com/users/cmadjar/followers","following_url":"https://api.github.com/users/cmadjar/following{/other_user}","gists_url":"https://api.github.com/users/cmadjar/gists{/gist_id}","starred_url":"https://api.github.com/users/cmadjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmadjar/subscriptions","organizations_url":"https://api.github.com/users/cmadjar/orgs","repos_url":"https://api.github.com/users/cmadjar/repos","events_url":"https://api.github.com/users/cmadjar/events{/privacy}","received_events_url":"https://api.github.com/users/cmadjar/received_events","type":"User","site_admin":false},"assignees":[{"login":"cmadjar","id":1402456,"avatar_url":"https://avatars0.githubusercontent.com/u/1402456?v=4","gravatar_id":"","url":"https://api.github.com/users/cmadjar","html_url":"https://github.com/cmadjar","followers_url":"https://api.github.com/users/cmadjar/followers","following_url":"https://api.github.com/users/cmadjar/following{/other_user}","gists_url":"https://api.github.com/users/cmadjar/gists{/gist_id}","starred_url":"https://api.github.com/users/cmadjar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmadjar/subscriptions","organizations_url":"https://api.github.com/users/cmadjar/orgs","repos_url":"https://api.github.com/users/cmadjar/repos","events_url":"https://api.github.com/users/cmadjar/events{/privacy}","received_events_url":"https://api.github.com/users/cmadjar/received_events","type":"User","site_admin":false},{"login":"gluneau","id":2903505,"avatar_url":"https://avatars0.githubusercontent.com/u/2903505?v=4","gravatar_id":"","url":"https://api.github.com/users/gluneau","html_url":"https://github.com/gluneau","followers_url":"https://api.github.com/users/gluneau/followers","following_url":"https://api.github.com/users/gluneau/following{/other_user}","gists_url":"https://api.github.com/users/gluneau/gists{/gist_id}","starred_url":"https://api.github.com/users/gluneau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gluneau/subscriptions","organizations_url":"https://api.github.com/users/gluneau/orgs","repos_url":"https://api.github.com/users/gluneau/repos","events_url":"https://api.github.com/users/gluneau/events{/privacy}","received_events_url":"https://api.github.com/users/gluneau/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/aces/dicom-archive-tools/milestones/5","html_url":"https://github.com/aces/dicom-archive-tools/milestone/5","labels_url":"https://api.github.com/repos/aces/dicom-archive-tools/milestones/5/labels","id":2070150,"number":5,"title":"17.1","description":"","creator":{"login":"MounaSafiHarab","id":15198379,"avatar_url":"https://avatars1.githubusercontent.com/u/15198379?v=4","gravatar_id":"","url":"https://api.github.com/users/MounaSafiHarab","html_url":"https://github.com/MounaSafiHarab","followers_url":"https://api.github.com/users/MounaSafiHarab/followers","following_url":"https://api.github.com/users/MounaSafiHarab/following{/other_user}","gists_url":"https://api.github.com/users/MounaSafiHarab/gists{/gist_id}","starred_url":"https://api.github.com/users/MounaSafiHarab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MounaSafiHarab/subscriptions","organizations_url":"https://api.github.com/users/MounaSafiHarab/orgs","repos_url":"https://api.github.com/users/MounaSafiHarab/repos","events_url":"https://api.github.com/users/MounaSafiHarab/events{/privacy}","received_events_url":"https://api.github.com/users/MounaSafiHarab/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":4,"state":"open","created_at":"2016-10-14T13:12:53Z","updated_at":"2017-07-25T14:48:52Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/45/commits","review_comments_url":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/45/comments","review_comment_url":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aces/dicom-archive-tools/issues/45/comments","statuses_url":"https://api.github.com/repos/aces/dicom-archive-tools/statuses/744975d911ea32d0c474bb0cb676d658499009aa","head":{"label":"MounaSafiHarab:MoveSomeConfigOutOfProd","ref":"MoveSomeConfigOutOfProd","sha":"744975d911ea32d0c474bb0cb676d658499009aa","user":{"login":"MounaSafiHarab","id":15198379,"avatar_url":"https://avatars1.githubusercontent.com/u/15198379?v=4","gravatar_id":"","url":"https://api.github.com/users/MounaSafiHarab","html_url":"https://github.com/MounaSafiHarab","followers_url":"https://api.github.com/users/MounaSafiHarab/followers","following_url":"https://api.github.com/users/MounaSafiHarab/following{/other_user}","gists_url":"https://api.github.com/users/MounaSafiHarab/gists{/gist_id}","starred_url":"https://api.github.com/users/MounaSafiHarab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MounaSafiHarab/subscriptions","organizations_url":"https://api.github.com/users/MounaSafiHarab/orgs","repos_url":"https://api.github.com/users/MounaSafiHarab/repos","events_url":"https://api.github.com/users/MounaSafiHarab/events{/privacy}","received_events_url":"https://api.github.com/users/MounaSafiHarab/received_events","type":"User","site_admin":false},"repo":{"id":46722172,"name":"dicom-archive-tools","full_name":"MounaSafiHarab/dicom-archive-tools","owner":{"login":"MounaSafiHarab","id":15198379,"avatar_url":"https://avatars1.githubusercontent.com/u/15198379?v=4","gravatar_id":"","url":"https://api.github.com/users/MounaSafiHarab","html_url":"https://github.com/MounaSafiHarab","followers_url":"https://api.github.com/users/MounaSafiHarab/followers","following_url":"https://api.github.com/users/MounaSafiHarab/following{/other_user}","gists_url":"https://api.github.com/users/MounaSafiHarab/gists{/gist_id}","starred_url":"https://api.github.com/users/MounaSafiHarab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MounaSafiHarab/subscriptions","organizations_url":"https://api.github.com/users/MounaSafiHarab/orgs","repos_url":"https://api.github.com/users/MounaSafiHarab/repos","events_url":"https://api.github.com/users/MounaSafiHarab/events{/privacy}","received_events_url":"https://api.github.com/users/MounaSafiHarab/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MounaSafiHarab/dicom-archive-tools","description":"a set of tools to deal with DICOMs","fork":true,"url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools","forks_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/forks","keys_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/teams","hooks_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/hooks","issue_events_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/issues/events{/number}","events_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/events","assignees_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/assignees{/user}","branches_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/branches{/branch}","tags_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/tags","blobs_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/languages","stargazers_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/stargazers","contributors_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/contributors","subscribers_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/subscribers","subscription_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/subscription","commits_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/contents/{+path}","compare_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/merges","archive_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/downloads","issues_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/issues{/number}","pulls_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/labels{/name}","releases_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/releases{/id}","deployments_url":"https://api.github.com/repos/MounaSafiHarab/dicom-archive-tools/deployments","created_at":"2015-11-23T13:32:36Z","updated_at":"2015-11-23T13:32:36Z","pushed_at":"2017-07-25T14:45:57Z","git_url":"git://github.com/MounaSafiHarab/dicom-archive-tools.git","ssh_url":"git@github.com:MounaSafiHarab/dicom-archive-tools.git","clone_url":"https://github.com/MounaSafiHarab/dicom-archive-tools.git","svn_url":"https://github.com/MounaSafiHarab/dicom-archive-tools","homepage":"","size":210,"stargazers_count":0,"watchers_count":0,"language":"Perl","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":"master"}},"base":{"label":"aces:master","ref":"master","sha":"94e8976271b4f6ab3fe76c886d788186efa2b664","user":{"login":"aces","id":472868,"avatar_url":"https://avatars2.githubusercontent.com/u/472868?v=4","gravatar_id":"","url":"https://api.github.com/users/aces","html_url":"https://github.com/aces","followers_url":"https://api.github.com/users/aces/followers","following_url":"https://api.github.com/users/aces/following{/other_user}","gists_url":"https://api.github.com/users/aces/gists{/gist_id}","starred_url":"https://api.github.com/users/aces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aces/subscriptions","organizations_url":"https://api.github.com/users/aces/orgs","repos_url":"https://api.github.com/users/aces/repos","events_url":"https://api.github.com/users/aces/events{/privacy}","received_events_url":"https://api.github.com/users/aces/received_events","type":"Organization","site_admin":false},"repo":{"id":1547891,"name":"dicom-archive-tools","full_name":"aces/dicom-archive-tools","owner":{"login":"aces","id":472868,"avatar_url":"https://avatars2.githubusercontent.com/u/472868?v=4","gravatar_id":"","url":"https://api.github.com/users/aces","html_url":"https://github.com/aces","followers_url":"https://api.github.com/users/aces/followers","following_url":"https://api.github.com/users/aces/following{/other_user}","gists_url":"https://api.github.com/users/aces/gists{/gist_id}","starred_url":"https://api.github.com/users/aces/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aces/subscriptions","organizations_url":"https://api.github.com/users/aces/orgs","repos_url":"https://api.github.com/users/aces/repos","events_url":"https://api.github.com/users/aces/events{/privacy}","received_events_url":"https://api.github.com/users/aces/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aces/dicom-archive-tools","description":"a set of tools to deal with DICOMs","fork":false,"url":"https://api.github.com/repos/aces/dicom-archive-tools","forks_url":"https://api.github.com/repos/aces/dicom-archive-tools/forks","keys_url":"https://api.github.com/repos/aces/dicom-archive-tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aces/dicom-archive-tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aces/dicom-archive-tools/teams","hooks_url":"https://api.github.com/repos/aces/dicom-archive-tools/hooks","issue_events_url":"https://api.github.com/repos/aces/dicom-archive-tools/issues/events{/number}","events_url":"https://api.github.com/repos/aces/dicom-archive-tools/events","assignees_url":"https://api.github.com/repos/aces/dicom-archive-tools/assignees{/user}","branches_url":"https://api.github.com/repos/aces/dicom-archive-tools/branches{/branch}","tags_url":"https://api.github.com/repos/aces/dicom-archive-tools/tags","blobs_url":"https://api.github.com/repos/aces/dicom-archive-tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aces/dicom-archive-tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aces/dicom-archive-tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/aces/dicom-archive-tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aces/dicom-archive-tools/statuses/{sha}","languages_url":"https://api.github.com/repos/aces/dicom-archive-tools/languages","stargazers_url":"https://api.github.com/repos/aces/dicom-archive-tools/stargazers","contributors_url":"https://api.github.com/repos/aces/dicom-archive-tools/contributors","subscribers_url":"https://api.github.com/repos/aces/dicom-archive-tools/subscribers","subscription_url":"https://api.github.com/repos/aces/dicom-archive-tools/subscription","commits_url":"https://api.github.com/repos/aces/dicom-archive-tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/aces/dicom-archive-tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/aces/dicom-archive-tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/aces/dicom-archive-tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/aces/dicom-archive-tools/contents/{+path}","compare_url":"https://api.github.com/repos/aces/dicom-archive-tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aces/dicom-archive-tools/merges","archive_url":"https://api.github.com/repos/aces/dicom-archive-tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aces/dicom-archive-tools/downloads","issues_url":"https://api.github.com/repos/aces/dicom-archive-tools/issues{/number}","pulls_url":"https://api.github.com/repos/aces/dicom-archive-tools/pulls{/number}","milestones_url":"https://api.github.com/repos/aces/dicom-archive-tools/milestones{/number}","notifications_url":"https://api.github.com/repos/aces/dicom-archive-tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aces/dicom-archive-tools/labels{/name}","releases_url":"https://api.github.com/repos/aces/dicom-archive-tools/releases{/id}","deployments_url":"https://api.github.com/repos/aces/dicom-archive-tools/deployments","created_at":"2011-03-30T20:06:07Z","updated_at":"2016-08-25T18:32:27Z","pushed_at":"2017-06-22T19:51:56Z","git_url":"git://github.com/aces/dicom-archive-tools.git","ssh_url":"git@github.com:aces/dicom-archive-tools.git","clone_url":"https://github.com/aces/dicom-archive-tools.git","svn_url":"https://github.com/aces/dicom-archive-tools","homepage":"","size":211,"stargazers_count":3,"watchers_count":3,"language":"Perl","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":3,"forks":12,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/45"},"html":{"href":"https://github.com/aces/dicom-archive-tools/pull/45"},"issue":{"href":"https://api.github.com/repos/aces/dicom-archive-tools/issues/45"},"comments":{"href":"https://api.github.com/repos/aces/dicom-archive-tools/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aces/dicom-archive-tools/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/aces/dicom-archive-tools/statuses/744975d911ea32d0c474bb0cb676d658499009aa"}}}}
{"actor":{"display_login":"cmadjar"}}