Index: wp-content/themes/twentyten/functions.php
===================================================================
--- wp-content/themes/twentyten/functions.php	(revision 24178)
+++ wp-content/themes/twentyten/functions.php	(working copy)
@@ -528,8 +528,8 @@
 function twentyten_get_gallery_images() {
 	$images = array();
 
-	if ( function_exists( 'get_post_gallery_images' ) ) {
-		$galleries = get_post_galleries();
+	if ( function_exists( 'get_post_galleries' ) ) {
+		$galleries = get_post_galleries( get_the_ID(), false );
 		if ( isset( $galleries[0]['ids'] ) )
 		 	$images = explode( ',', $galleries[0]['ids'] );
 	} else {
