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

added if(isset($_SERVER['SCRIPT_URI'])) and change "print" to "echo" on line 93

Victor De la Rocha 16 лет назад
Родитель
Сommit
199c749069
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      install.php

+ 1 - 1
install.php Просмотреть файл

@@ -90,7 +90,7 @@ $install->check_form();
90 90
 						<li><label for="description">Description:</label>
91 91
 							<input type="text" name="description" id="description" value="" class="txt"/></li>
92 92
 						<li><label for="url_installation">Installation URL</label>
93
-							<input type="text" name="url_installation" id="url_installation" value="<?php print substr($_SERVER["SCRIPT_URI"], '0', '-12'); ?>" class="txt"/><?php echo $install->mostrarerror("5")?></li>
93
+							<input type="text" name="url_installation" id="url_installation" value="<?php if(isset($_SERVER['SCRIPT_URI']))echo substr($_SERVER["SCRIPT_URI"], '0', '-12'); ?>" class="txt"/><?php echo $install->mostrarerror("5")?></li>
94 94
 						<li><label for="posts_limit">Post limit:</label>
95 95
 							<input type="text" name="posts_limit" id="posts_limit" value="10" class="txt"/></li>
96 96
 						<li><label for="lang">Language:</label>