--- /var/www/debug.mensmaximus.com/htdocs/wp-admin/plugins.php	2016-08-17 05:45:03.979361024 +0200
+++ /var/www/devel.mensmaximus.com/htdocs/wp-admin/plugins.php	2016-09-09 10:26:36.474789223 +0200
@@ -158,12 +158,14 @@
 			if ( ! WP_DEBUG ) {
 				error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
 			}
+			
+			$network_wide = isset( $_REQUEST['network_wide'] ) ? $_REQUEST[ 'network_wide' ] : false;
 
 			@ini_set('display_errors', true); //Ensure that Fatal errors are displayed.
 			// Go back to "sandbox" scope so we get the same errors as before
 			plugin_sandbox_scrape( $plugin );
 			/** This action is documented in wp-admin/includes/plugin.php */
-			do_action( "activate_{$plugin}" );
+			do_action( "activate_{$plugin}", $network_wide );
 			exit;
 
 		case 'deactivate':
@@ -437,6 +439,7 @@
 				'action'   => 'error_scrape',
 				'plugin'   => urlencode( $plugin ),
 				'_wpnonce' => urlencode( $_GET['_error_nonce'] ),
+				'network_wide'  => is_network_admin(),
 			), admin_url( 'plugins.php' ) );
 		?>
 		<iframe style="border:0" width="100%" height="70px" src="<?php echo esc_url( $iframe_url ); ?>"></iframe>
