@@ 913-928 (lines=16) @@ | ||
910 | ||
911 | $options = new JRegistry; |
|
912 | ||
913 | if (!empty($gh_token)) |
|
914 | { |
|
915 | $options->set('gh.token', $gh_token); |
|
916 | $github = new JGithub($options); |
|
917 | } |
|
918 | else |
|
919 | { |
|
920 | // Without a token runs fatal. |
|
921 | // $github = new JGithub; |
|
922 | ||
923 | // Trying with a 'read only' public repositories token |
|
924 | // But base 64 encoded to avoid Github alarms sharing it. |
|
925 | $gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA=='); |
|
926 | $options->set('gh.token', $gh_token); |
|
927 | $github = new JGithub($options); |
|
928 | } |
|
929 | ||
930 | try |
|
931 | { |
|
@@ 1076-1091 (lines=16) @@ | ||
1073 | ||
1074 | $options = new JRegistry; |
|
1075 | ||
1076 | if (!empty($gh_token)) |
|
1077 | { |
|
1078 | $options->set('gh.token', $gh_token); |
|
1079 | $github = new JGithub($options); |
|
1080 | } |
|
1081 | else |
|
1082 | { |
|
1083 | // Without a token runs fatal. |
|
1084 | // $github = new JGithub; |
|
1085 | ||
1086 | // Trying with a 'read only' public repositories token |
|
1087 | // But base 64 encoded to avoid Github alarms sharing it. |
|
1088 | $gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA=='); |
|
1089 | $options->set('gh.token', $gh_token); |
|
1090 | $github = new JGithub($options); |
|
1091 | } |
|
1092 | ||
1093 | try |
|
1094 | { |
|
@@ 1514-1529 (lines=16) @@ | ||
1511 | ||
1512 | $options = new JRegistry; |
|
1513 | ||
1514 | if (!empty($gh_token)) |
|
1515 | { |
|
1516 | $options->set('gh.token', $gh_token); |
|
1517 | $github = new JGithub($options); |
|
1518 | } |
|
1519 | else |
|
1520 | { |
|
1521 | // Without a token runs fatal. |
|
1522 | // $github = new JGithub; |
|
1523 | ||
1524 | // Trying with a 'read only' public repositories token |
|
1525 | // But base 64 encoded to avoid Github alarms sharing it. |
|
1526 | $gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA=='); |
|
1527 | $options->set('gh.token', $gh_token); |
|
1528 | $github = new JGithub($options); |
|
1529 | } |
|
1530 | ||
1531 | try |
|
1532 | { |
@@ 51-66 (lines=16) @@ | ||
48 | ||
49 | $options = new JRegistry; |
|
50 | ||
51 | if (!empty($gh_token)) |
|
52 | { |
|
53 | $options->set('gh.token', $gh_token); |
|
54 | $github = new JGithub($options); |
|
55 | } |
|
56 | else |
|
57 | { |
|
58 | // Without a token runs fatal. |
|
59 | // $github = new JGithub; |
|
60 | ||
61 | // Trying with a 'read only' public repositories token |
|
62 | // But base 64 encoded to avoid Github alarms sharing it. |
|
63 | $gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA=='); |
|
64 | $options->set('gh.token', $gh_token); |
|
65 | $github = new JGithub($options); |
|
66 | } |
|
67 | ||
68 | try |
|
69 | { |