Index: shardb-admin.php
===================================================================
--- shardb-admin.php (revision 358777)
+++ shardb-admin.php (working copy)
@@ -74,7 +74,9 @@
echo '
' . __( 'SharDB Migration', 'shardb' ) . '
';
$action = isset($_GET['action']) ? $_GET['action'] : 'show';
- $start_url = add_query_arg( array( 'action' => 'migrate' ), menu_page_url( __FUNCTION__, false ) );
+ $url = menu_page_url( __FUNCTION__, false );
+ $start_url = add_query_arg( array( 'action' => 'migrate' ), $url );
+ $global_url = add_query_arg( array( 'action' => 'global' ), $url );
switch ( $action ) {
case 'migrate':
@@ -88,7 +90,7 @@
$shards = array();
echo '';
$count = 0;
- foreach ( $sites as $site ) {
+ foreach( $sites as $site ) {
$count++;
$siteurl = get_blog_option( $site, 'siteurl' );
if( empty( $siteurl ) )
@@ -103,7 +105,7 @@
}
echo '
';
$next_url = add_query_arg( array( 'next' => $next + $count ), $start_url );
-// var_dump( $errors ); die;
+
if( empty( $errors ) ) {
?>