Просмотр исходного кода

Index.php does not include the new .git folder when listing directories

Manuel Gall 1 год назад
Родитель
Сommit
58e12c23cd
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -49,7 +49,7 @@ $(document).ready(function() {
   <?php
     $scan = scandir('./');
     foreach($scan as $file) {
-      if (is_dir("./$file") && $file != '.' && $file != '..' && $file != 'styles') {
+      if (is_dir("./$file") && $file != '.' && $file != '..' && $file != 'styles' && $file != '.git') {
         ?>
         <a href="https://centurio.evva.com/services/frames_support/<?php echo $file;?>/config.html">
           <h1><?php echo ucfirst($file);?>:</h1>