Project

General

Profile

« Previous | Next » 

Revision e550b82c

Added by Jim Pingle over 12 years ago

Bold and note manifest entries that match the current architecture, and add a note cautioning against a cross-architecture upgrade.

View differences:

usr/local/www/system_firmware_settings.php
127 127
					<option></option>
128 128
				<?php 
129 129
					foreach($preset_urls_split as $pus) {
130
						$pus_text = split("\t", $pus);
131
						if($pus_text[0])
132
							echo "<option value='{$pus_text[1]}'>{$pus_text[0]}</option>";
130
						$pus_text = explode("\t", $pus);
131
						if (empty($pus_text[0]))
132
							continue;
133
						if (stristr($pus_text[0], php_uname("m")) !== false) {
134
							$style = " style=\"font-weight: bold\"";
135
							$yourarch = " (Current architecture)";
136
						} else {
137
							$style = "";
138
							$yourarch = "";
139
						}
140
						echo "<option value='{$pus_text[1]}'{$style}>{$pus_text[0]}{$yourarch}</option>";
133 141
					}
134 142
				?>
135 143
			</select>
144
		<br/><br/><?php echo sprintf(gettext("Entries denoted by \"Current architecture\" match the architecture of your current installation, such as %s. Changing architectures during an upgrade is not recommended, and may require a manual reboot after the update completes."), php_uname("m")); ?>
136 145
		</td>
137 146
	</tr>
138 147
<?php endif; ?>

Also available in: Unified diff