Skip to:
Content

BuddyPress.org

Ticket #6929: 6929.patch

File 6929.patch, 802 bytes (added by imath, 9 years ago)
  • src/bp-core/admin/bp-core-admin-functions.php

    diff --git src/bp-core/admin/bp-core-admin-functions.php src/bp-core/admin/bp-core-admin-functions.php
    index 095d41b..431b8f1 100644
    function bp_admin_email_maybe_add_translation_notice() { 
    828828                return;
    829829        }
    830830
     831        $admin_page = 'tools.php';
     832
     833        if ( bp_is_network_activated() && ! bp_is_multiblog_mode() ) {
     834                $admin_page = 'admin.php';
     835        }
     836
    831837        bp_core_add_admin_notice(
    832838                sprintf(
    833839                        __( 'Are your emails in the wrong language? Go to <a href="%s">BuddyPress Tools and run the "reinstall emails"</a> tool.', 'buddypress' ),
    834                         bp_get_admin_url( 'tools.php?page=bp-tools' )
     840                        esc_url( add_query_arg( 'page', 'bp-tools', bp_get_admin_url( $admin_page ) ) )
    835841                ),
    836842                'updated'
    837843        );