Changeset 11763 for trunk/src/bp-core/admin/bp-core-admin-settings.php
- Timestamp:
- 12/08/2017 12:22:09 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-settings.php
r11606 r11763 248 248 } 249 249 250 /** Forums Section ************************************************************/251 252 /**253 * Forums settings section description for the settings page.254 *255 * @since 1.6.0256 */257 function bp_admin_setting_callback_bbpress_section() { }258 259 /**260 * The bb-config.php location field.261 *262 * @since 1.6.0263 *264 */265 function bp_admin_setting_callback_bbpress_configuration() {266 267 $config_location = bp_get_option( 'bb-config-location' );268 $file_exists = (bool) ( file_exists( $config_location ) || is_file( $config_location ) ); ?>269 270 <input name="bb-config-location" type="text" id="bb-config-location" value="<?php bp_form_option( 'bb-config-location', '' ); ?>" class="medium-text" style="width: 300px;" />271 272 <?php if ( false === $file_exists ) : ?>273 274 <a class="button" href="<?php bp_admin_url( 'admin.php?page=bb-forums-setup&repair=1' ); ?>"><?php _e( 'Repair', 'buddypress' ) ?></a>275 <span class="attention"><?php _e( 'File does not exist', 'buddypress' ); ?></span>276 277 <?php endif; ?>278 279 <p class="description"><?php _e( 'Absolute path to your bbPress configuration file.', 'buddypress' ); ?></p>280 281 <?php282 }283 284 250 /** Settings Page *************************************************************/ 285 251
Note: See TracChangeset
for help on using the changeset viewer.