Skip to:
Content

bbPress.org

Changeset 1304


Ignore:
Timestamp:
03/13/2008 03:05:17 PM (18 years ago)
Author:
sambauers
Message:

Force a slash to the end of JS constructed link - branches/0.8 - See #819 - Props da3rX

Location:
branches/0.8/bb-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/0.8/bb-admin/class-install.php

    r1292 r1304  
    544544                        'value' => '',
    545545                        'label' => __('WordPress database secret:'),
    546                         'note'  => __('This must match the value of the WordPress setting named "secret" in your WordPress installation. Look for the option labeled "secret" in this WordPress admin page - <a href="#" id="getSecretOption" onclick="window.open(this.href); return false;"></a>'),
     546                        'note'  => __('This must match the value of the WordPress setting named "secret" in your WordPress installation. Look for the option labeled "secret" in <a href="#" id="getSecretOption" onclick="window.open(this.href); return false;">this WordPress admin page</a>.'),
    547547                        'prerequisite' => 'toggle_2_1'
    548548                    ),
  • branches/0.8/bb-admin/install.php

    r1282 r1304  
    215215                        var outputAnchor = document.getElementById('getSecretOption');
    216216                        if (siteURLInputValue) {
    217                             outputAnchor.innerHTML = siteURLInputValue + 'wp-admin/options.php';
     217                            if (siteURLInputValue.substr(-1,1) != '/') {
     218                                siteURLInputValue += '/';
     219                            }
    218220                            outputAnchor.href = siteURLInputValue + 'wp-admin/options.php';
    219221                        } else {
    220                             outputAnchor.innerHTML = '';
    221222                            outputAnchor.href = '';
    222223                        }
Note: See TracChangeset for help on using the changeset viewer.