mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
catch case if exec() is not usable
This commit is contained in:
@@ -359,7 +359,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (file_exists(realpath(APPPATH . '../') . '/.git')) { ?>
|
||||
<?php if (file_exists(realpath(APPPATH . '../') . '/.git') && function_usable('exec')) { ?>
|
||||
<?php
|
||||
//Below is a failsafe where git commands fail
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user