Changeset 2114952
- Timestamp:
- 06/30/2019 10:34:14 AM (7 years ago)
- File:
-
- 1 edited
-
censorship/trunk/init.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
censorship/trunk/init.php
r2114939 r2114952 308 308 <?php 309 309 $currSettings = maybe_unserialize( get_option( 'censorship-settings' ) ); 310 if( in_array('*****', $currSettings['chrReplace'])) {310 if( $currSettings['chrReplace'] == "*****" ) { 311 311 echo '<input type="radio" name="replacement[]" value="*****" checked>'; 312 312 } else { … … 315 315 echo '<i>Stars</i> ( "<b>*****</b>" )<br>'; 316 316 317 if( !in_array('*****', $currSettings['chrReplace']) && !in_array('#####', $currSettings['chrReplace'])) {317 if( $currSettings['chrReplace'] !== "*****" ) { 318 318 echo '<input type="radio" name="replacement[]" value="custom" checked>'; 319 echo '<i>Custom</i> : <input type="text" name="txtCustom" value="' . $currSettings['chrReplace'] . '" placeholder="%@!#%&">'; 319 320 } else { 320 321 echo '<input type="radio" name="replacement[]" value="custom">'; 321 }322 echo '<i>Custom</i> : <input type="text" name="txtCustom" value="' . $currSettings['chrReplace'][0] . '" placeholder="%@!#%&">';322 echo '<i>Custom</i> : <input type="text" name="txtCustom" value="" placeholder="%@!#%&">'; 323 } 323 324 ?> 324 325 </td>
Note: See TracChangeset
for help on using the changeset viewer.