Explorar o código

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

Manuel Gall %!s(int64=2) %!d(string=hai) anos
pai
achega
58e12c23cd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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>