Rev 1426 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1426 | Rev 1442 | ||
---|---|---|---|
Line 136... | Line 136... | ||
136 | 136 | ||
137 | # --- |
137 | # --- |
138 | 138 | ||
139 | function getLatestRevision() { |
139 | function getLatestRevision() { |
140 | try { |
140 | try { |
141 | $master_changelog = OIDplus::getEditionInfo()['master_changelog']; |
141 | $changelog_candidates = OIDplus::getEditionInfo()['master_changelog']; |
- | 142 | if (!is_array($changelog_candidates)) $changelog_candidates = [ $changelog_candidates ]; |
|
- | 143 | ||
- | 144 | foreach ($changelog_candidates as $master_changelog) { |
|
- | 145 | try { |
|
142 | return OIDplus::getVersion($master_changelog); |
146 | $out = OIDplus::getVersion($master_changelog); |
- | 147 | if ($out) return $out; |
|
- | 148 | } catch (\Exception $e) { |
|
- | 149 | } |
|
- | 150 | } |
|
- | 151 | return false; |
|
143 | } catch (\Exception $e) { |
152 | } catch (\Exception $e) { |
144 | return false; |
153 | return false; |
145 | } |
154 | } |
146 | } |
155 | } |
147 | - |