mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
catch non git installs
This commit is contained in:
@@ -468,5 +468,9 @@
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var local_branch = '<?php echo $branch; ?>';
|
||||
<?php if (file_exists(realpath(APPPATH . '../') . '/.git')) { ?>
|
||||
var local_branch = '<?php echo $branch; ?>';
|
||||
<?php } else { ?>
|
||||
var local_branch = 'n/a';
|
||||
<?php } ?>
|
||||
</script>
|
||||
Reference in New Issue
Block a user