Przeglądaj źródła

Fix syntax problem in install.php

Mark Crane 11 lat temu
rodzic
commit
a18c6af463
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      resources/install.php

+ 1 - 2
resources/install.php

@@ -199,7 +199,7 @@ require_once "resources/functions.php";
 					$switch_grammar_dir = '/usr/share/freeswitch/grammar';
 				}
 				//old
-				else (file_exists('/usr/share/freeswitch/grammar')) {
+				elseif (file_exists('/usr/share/freeswitch/grammar')) {
 					$switch_grammar_dir = '/usr/share/freeswitch/grammar';
 				}
 				//new
@@ -219,7 +219,6 @@ require_once "resources/functions.php";
 				//old				
 				elseif (file_exists('/var/lib/freeswitch/recordings')) {
 					$switch_recordings_dir = '/var/lib/freeswitch/recordings';
-					}
 				}
 				if (file_exists('/usr/share/freeswitch/sounds')) {
 					$switch_sounds_dir = '/usr/share/freeswitch/sounds';