File tree Expand file tree Collapse file tree 3 files changed +23
-11
lines changed
Expand file tree Collapse file tree 3 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 1- 1.4.1
1+ 1.4.2
Original file line number Diff line number Diff line change 33 <div id =" footer" >
44 Powered by
55 <a href =" http://learninglocker.net" target =' _blank' >Learning Locker</a >
6- <?php $installed_version = file_get_contents (base_path (). ' /VERSION' ); ? >
7- <?php $latest_version = file_get_contents (' https://raw.githubusercontent.com/LearningLocker/learninglocker/master/VERSION' ); ? >
6+ <?php
7+ $installed_version = file_get_contents (base_path (). ' /VERSION' );
8+ try {
9+ $latest_version = file_get_contents (
10+ ' https://raw.githubusercontent.com/LearningLocker/learninglocker/master/VERSION'
11+ );
12+ } catch (Exception $ex ) {
13+ $latest_version = null ;
14+ }
15+ ? >
816 <a href =" https://github.com/LearningLocker/learninglocker/releases/tag/v{{ $installed_version } }" >Version {{ $installed_version } } </a >
9- @if ($latest_version !== $installed_version )
10- <a href =" https://github.com/LearningLocker/learninglocker/releases/latest" >You can upgrade to {{ $latest_version } } </a >
11- @else
12- <a href =" https://github.com/LearningLocker/learninglocker/releases/latest" >You have the latest version</a >
13- @endif
17+ <a href =" https://github.com/LearningLocker/learninglocker/releases/latest" >
18+ @if ($latest_version === null )
19+ Github Releases
20+ @elseif ($latest_version !== $installed_version )
21+ You can upgrade to {{ $latest_version } }
22+ @else
23+ You have the latest version
24+ @endif
25+ </a >
1426 </div >
You can’t perform that action at this time.
0 commit comments