diff --git a/PiwigoPress_code.php b/PiwigoPress_code.php
index 84660cf..45dea98 100644
--- a/PiwigoPress_code.php
+++ b/PiwigoPress_code.php
@@ -58,7 +58,11 @@ if ($thumbnail) {
 			. $options . '&recursive=true&order=random&f_with_thumbnail=true');
 	$thumbc = unserialize($response);
 	if ($thumbc["stat"] == 'ok') {
+		/* fix from http://wordpress.org/support/topic/piwigo-260-and-piwigopress-223
+		** for piwigo 2.6
 		$pictures = $thumbc["result"]["images"]["_content"];
+		*/
+		$pictures = $thumbc["result"]["images"];
 		foreach ($pictures as $picture) {
 			if (isset($picture['derivatives']['square']['url'])) {
 				$picture['tn_url'] = $picture['derivatives']['thumb']['url'] ;
@@ -147,4 +151,4 @@ if ($most_visited == 'true' or $best_rated == 'true' or
 	
 echo $after_widget;
 
-?>
\ No newline at end of file
+?>
diff --git a/PiwigoPress_get.php b/PiwigoPress_get.php
index d522f3a..b8f2930 100644
--- a/PiwigoPress_get.php
+++ b/PiwigoPress_get.php
@@ -5,15 +5,33 @@ if (!defined('PWGP_NAME')) return; /* Avoid unpredicted access */
 if (!isset($pwg_mode)) $pwg_mode = ''; // Remind which process is working well
 $pwg_prev_host = ''; // Remind last requested gallery 
 
+function pwg_ret_protocol() {
+        if ( isset($_SERVER['HTTPS']) ) {
+                if ( 'on' == strtolower($_SERVER['HTTPS']) )
+                        return "https://";
+                if ( '1' == $_SERVER['HTTPS'] )
+                        return "https://";
+        } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
+                return "https://";
+        }
+        return "http://";
+}
+
 function pwg_get_contents($url, $mode='', $timeout=5) {
 
 	global $pwg_mode, $pwg_prev_host;
 
-	$host = (strtolower(substr($url,0,7)) == 'http://') ? substr($url,7) : $url;
+	# support same-host piwigo
+	if ((strtolower(substr($url,0,7)) !== 'http://') and 
+	    (strtolower(substr($url,0,8)) !== 'https://')) {
+	  $fullurl = pwg_ret_protocol() . $_SERVER['HTTP_HOST'] . $url;
+	} else {
+	  $fullurl = $url;
+	}
+	$host = (strtolower(substr($fullurl,0,7)) == 'http://') ? substr($fullurl,7) : $fullurl;
 	$host = (strtolower(substr($host,0,8)) == 'https://') ? substr($host,8) : $host;
 	$doc = substr($host, strpos($host, '/'));
 	$host = substr($host, 0, strpos($host, '/'));
-
 	if ($pwg_prev_host != $host) $pwg_mode = ''; // What was possible with one website could be different with another
 	$pwg_prev_host = $host;
 	if ($mode == '') $mode = $pwg_mode; // Can be forced by the requester
@@ -24,7 +42,7 @@ function pwg_get_contents($url, $mode='', $timeout=5) {
 //      ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
 //      allow_url_fopen = On
 	if ( $mode == '' and true === (bool) ini_get('allow_url_fopen') ) { 
-			$value = @file_get_contents($url);
+			$value = @file_get_contents($fullurl);
 			if ( $value !== false) return $value;
 	}
 	if ( $mode == '' ) $mode = 'fs';
@@ -54,7 +72,7 @@ function pwg_get_contents($url, $mode='', $timeout=5) {
 	if ($mode !== 'Err' and function_exists('curl_init')) {
 		$ch = @curl_init();
 		@curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
-		@curl_setopt($ch, CURLOPT_URL, $url);
+		@curl_setopt($ch, CURLOPT_URL, $fullurl);
 		@curl_setopt($ch, CURLOPT_HEADER, 1);
 		@curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0');
 		@curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
@@ -78,4 +96,4 @@ function pwg_get_contents($url, $mode='', $timeout=5) {
 	$pwg_mode = 'Err';
 	return serialize($return);
 }
-?>
\ No newline at end of file
+?>
diff --git a/PiwigoPress_options.php b/PiwigoPress_options.php
index 43f5653..0bed9cf 100644
--- a/PiwigoPress_options.php
+++ b/PiwigoPress_options.php
@@ -2,7 +2,7 @@
 if (defined('PHPWG_ROOT_PATH')) return; /* Avoid direct usage under Piwigo */
 if (!defined('PWGP_NAME')) return; /* Avoid unpredicted access */
 
-	wp_register_script( 'piwigopress_ws', WP_PLUGIN_URL . '/piwigopress/js/piwigopress_widgets.js', array('jquery'), PWGP_VERSION );
+	wp_register_script( 'piwigopress_ws', plugins_url( 'piwigopress/js/piwigopress_widgets.js'), array('jquery'), PWGP_VERSION );
 	wp_enqueue_script( 'piwigopress_ws' );
 	// Defaults
 	$gallery = wp_parse_args( (array) $gallery, array('title'=>__('Random picture'), 
@@ -192,4 +192,4 @@ if (!defined('PWGP_NAME')) return; /* Avoid unpredicted access */
 	. '" type="text" value="' . $class . '" /></label></td>
 	</tr></table>
 	</div>';
-?>
\ No newline at end of file
+?>
diff --git a/js/piwigopress_adm.js b/js/piwigopress_adm.js
index 0a90232..1d9f69a 100644
--- a/js/piwigopress_adm.js
+++ b/js/piwigopress_adm.js
@@ -120,6 +120,7 @@ Compiler on http://refresh-sf.com/yui/
 								var $list = $( "ul", $trash );
 								$item.appendTo( $list ).fadeIn(); // Available to be shortcoded
 								$("a#PWGP_Gen").unbind().click(function () {
+									var tmce_ver=window.tinyMCE.majorVersion;
 									$("img", $trash).each(function () {
 										var $Shortcode = $(this).attr('title').split(']');
 										var $scode = $Shortcode[0];
@@ -133,10 +134,16 @@ Compiler on http://refresh-sf.com/yui/
 										var $lnktype = $('#link_type input[type=radio][name=link_type]:checked').attr('value');
 										if ( $lnktype != 'picture' ) $scode += " lnktype='"+$lnktype+"'";
 										var $scode = "\t"+$scode+"] \n\r";
+
 										// HTML Editor only insert statement
 										$('#content').insertAtCaret( $scode );
 										// Visual Editor Only insert statement
-										tinyMCE.execInstanceCommand('content', "mceInsertContent", false, $scode ); 
+										if (tmce_ver>="4") {
+											tinyMCE.execCommand('mceInsertContent', false, $scode);
+										} else {
+											tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, $scode);
+										}
+
 										// If you are using another WordPress Post Editor 
 										// and if you already found its right insert statement, 
 										// please, for all PiwigoPress users, share it through a dedicate topic there: 
@@ -162,4 +169,4 @@ Compiler on http://refresh-sf.com/yui/
 			}
 		});
 	});
-}(jQuery));
\ No newline at end of file
+}(jQuery));
diff --git a/js/piwigopress_adm.min.js b/js/piwigopress_adm.min.js
index 6234459..a6377e2 100644
--- a/js/piwigopress_adm.min.js
+++ b/js/piwigopress_adm.min.js
@@ -1,24 +1 @@
-(function($){$.fn.extend({insertAtCaret:function(myValue){return this.each(function(i){if(document.selection){this.focus();sel=document.selection.createRange();
-sel.text=myValue;this.focus()}else{if(this.selectionStart||this.selectionStart=="0"){var startPos=this.selectionStart;var endPos=this.selectionEnd;
-var scrollTop=this.scrollTop;this.value=this.value.substring(0,startPos)+myValue+this.value.substring(endPos,this.value.length);this.focus();
-this.selectionStart=startPos+myValue.length;this.selectionEnd=startPos+myValue.length;this.scrollTop=scrollTop}else{this.value+=myValue;this.focus()
-}}})}});$(document).ready(function(){var pwgp_Gallery_Display=true;$("a#PWGP_button").unbind().click(function(){if(pwgp_Gallery_Display){if($("#dashboard-widgets-wrap").size()==0){var where="#poststuff"
-}else{var where="#dashboard-widgets-wrap"}if($("#PWGP_shortcoder").size()==0){var finder=$("#PWGP_Gal_finder").html();$(where).before('<div id="PWGP_shortcoder" />');
-$("#PWGP_shortcoder").html(finder);$("#PWGP_Gal_finder").remove()}else{$("#PWGP_shortcoder").show()}$("#PWGP_finder").focusin(function(){$("#PWGP_more").hide();
-$("#PWGP_hide").hide();$("#PWGP_show").hide();$("#PWGP_show_stats").hide()});$("#PWGP_load").unbind().click(function(){var url=$("#PWGP_finder").val(),loaded=5,$gallery=$("#PWGP_dragger"),$dragli=$("#PWGP_dragger li"),$trash=$("#PWGP_dropping");
-$(".PWGP_system").show(500);$("#PWGP_Load_Active").show();$gallery.load("../wp-content/plugins/piwigopress/thumbnails_reloader.php?&url="+url,function(){$("#PWGP_more").show().unbind().click(function(){Get_more()
-});$("#PWGP_hide").show().unbind().click(function(){var hide=Math.max(1,Math.floor($("li:visible",$gallery).size()/2));for(i=0;i<hide;i++){$gallery.find("li:visible").first().hide()
-}if($("li:visible",$gallery).size()==0){$("#PWGP_hide").hide()}else{$("#PWGP_show").show().unbind().click(function(){$("li:hidden",$gallery).show();
-$("#PWGP_show").hide()})}});Drag_n_Drop();$("#PWGP_Load_Active").hide();function Get_more(){$("#PWGP_Load_Active").show();$.ajax({url:"../wp-content/plugins/piwigopress/thumbnails_reloader.php?&loaded="+loaded+"&url="+url,cache:false,success:function(html){Drag_n_Drop(html)
-}});var added=5;if(loaded>9){added=10}if(loaded>49){added=50}if(loaded>99){added=100}loaded+=added}function Drag_n_Drop(thumbs){$($gallery).append(thumbs);
-var hgal=($("#PWGP_dragger img").first().height())+20;$gallery.height(hgal);$trash.height(hgal+25).css("min-height",hgal+25);$("#PWGP_dropping ul").height(hgal);
-$("li",$gallery).draggable({revert:true,cursor:"move",zIndex:50});var obtained=$("li",$trash).size()+$("li",$gallery).size();$("#PWGP_show_stats").show().find("#PWGP_stats").text(" "+obtained+" / "+loaded);
-$trash.droppable({activeClass:"ui-state-highlight",drop:function(event,ui){insertImage(ui.draggable)}});if($("li:visible",$gallery).size()>0){$("#PWGP_hide").show()
-}$("#PWGP_Load_Active").hide()}function insertImage($item){$item.fadeOut(function(){var $list=$("ul",$trash);$item.appendTo($list).fadeIn();$("a#PWGP_Gen").unbind().click(function(){$("img",$trash).each(function(){var $Shortcode=$(this).attr("title").split("]");
-var $scode=$Shortcode[0];var $hsize=$("#thumbnail_size input[type=radio][name=thumbnail_size]:checked").attr("value");if($hsize!=="la"){$scode+=" size='"+$hsize+"'"
-}$("input#desc_check[name=desc_check]").attr("value",0);$hdesc=0+$("input#desc_check[name=desc_check]:checked").attr("value",1).attr("value");
-if($hdesc==1){$scode+=" desc=1"}var $hclass=$("#photo_class").val();if($hclass!=""){$scode+=" class='"+$hclass+"'"}var $lnktype=$("#link_type input[type=radio][name=link_type]:checked").attr("value");
-if($lnktype!="picture"){$scode+=" lnktype='"+$lnktype+"'"}var $scode="\t"+$scode+"] \n\r";$("#content").insertAtCaret($scode);tinyMCE.execInstanceCommand("content","mceInsertContent",false,$scode)
-})});$("a#PWGP_rst").unbind().click(function(){$("li",$trash).appendTo($gallery);$("a#PWGP_Gen").hide();$("a#PWGP_rst").hide();$("#PWGP_show_stats").show().find("#PWGP_stats").text(" "+$("li",$gallery).size()+" / "+loaded)
-})});$("a#PWGP_Gen").show();$("a#PWGP_rst").show()}})});pwgp_Gallery_Display=false}else{$("div#PWGP_shortcoder").hide();pwgp_Gallery_Display=true
-}})})}(jQuery));
\ No newline at end of file
+(function($){$.fn.extend({insertAtCaret:function(myValue){return this.each(function(i){if(document.selection){this.focus();sel=document.selection.createRange();sel.text=myValue;this.focus()}else{if(this.selectionStart||this.selectionStart=="0"){var startPos=this.selectionStart;var endPos=this.selectionEnd;var scrollTop=this.scrollTop;this.value=this.value.substring(0,startPos)+myValue+this.value.substring(endPos,this.value.length);this.focus();this.selectionStart=startPos+myValue.length;this.selectionEnd=startPos+myValue.length;this.scrollTop=scrollTop}else{this.value+=myValue;this.focus()}}})}});$(document).ready(function(){var pwgp_Gallery_Display=true;$("a#PWGP_button").unbind().click(function(){if(pwgp_Gallery_Display){if($("#dashboard-widgets-wrap").size()==0){var where="#poststuff"}else{var where="#dashboard-widgets-wrap"}if($("#PWGP_shortcoder").size()==0){var finder=$("#PWGP_Gal_finder").html();$(where).before('<div id="PWGP_shortcoder" />');$("#PWGP_shortcoder").html(finder);$("#PWGP_Gal_finder").remove()}else{$("#PWGP_shortcoder").show()}$("#PWGP_finder").focusin(function(){$("#PWGP_more").hide();$("#PWGP_hide").hide();$("#PWGP_show").hide();$("#PWGP_show_stats").hide()});$("#PWGP_load").unbind().click(function(){var url=$("#PWGP_finder").val(),loaded=5,$gallery=$("#PWGP_dragger"),$dragli=$("#PWGP_dragger li"),$trash=$("#PWGP_dropping");$(".PWGP_system").show(500);$("#PWGP_Load_Active").show();$gallery.load("../wp-content/plugins/piwigopress/thumbnails_reloader.php?&url="+url,function(){$("#PWGP_more").show().unbind().click(function(){Get_more()});$("#PWGP_hide").show().unbind().click(function(){var hide=Math.max(1,Math.floor($("li:visible",$gallery).size()/2));for(i=0;i<hide;i++){$gallery.find("li:visible").first().hide()}if($("li:visible",$gallery).size()==0){$("#PWGP_hide").hide()}else{$("#PWGP_show").show().unbind().click(function(){$("li:hidden",$gallery).show();$("#PWGP_show").hide()})}});Drag_n_Drop();$("#PWGP_Load_Active").hide();function Get_more(){$("#PWGP_Load_Active").show();$.ajax({url:"../wp-content/plugins/piwigopress/thumbnails_reloader.php?&loaded="+loaded+"&url="+url,cache:false,success:function(html){Drag_n_Drop(html)}});var added=5;if(loaded>9){added=10}if(loaded>49){added=50}if(loaded>99){added=100}loaded+=added}function Drag_n_Drop(thumbs){$($gallery).append(thumbs);var hgal=($("#PWGP_dragger img").first().height())+20;$gallery.height(hgal);$trash.height(hgal+25).css("min-height",hgal+25);$("#PWGP_dropping ul").height(hgal);$("li",$gallery).draggable({revert:true,cursor:"move",zIndex:50});var obtained=$("li",$trash).size()+$("li",$gallery).size();$("#PWGP_show_stats").show().find("#PWGP_stats").text(" "+obtained+" / "+loaded);$trash.droppable({activeClass:"ui-state-highlight",drop:function(event,ui){insertImage(ui.draggable)}});if($("li:visible",$gallery).size()>0){$("#PWGP_hide").show()}$("#PWGP_Load_Active").hide()}function insertImage($item){$item.fadeOut(function(){var $list=$("ul",$trash);$item.appendTo($list).fadeIn();$("a#PWGP_Gen").unbind().click(function(){var tmce_ver=window.tinyMCE.majorVersion;$("img",$trash).each(function(){var $Shortcode=$(this).attr("title").split("]");var $scode=$Shortcode[0];var $hsize=$("#thumbnail_size input[type=radio][name=thumbnail_size]:checked").attr("value");if($hsize!=="la"){$scode+=" size='"+$hsize+"'"}$("input#desc_check[name=desc_check]").attr("value",0);$hdesc=0+$("input#desc_check[name=desc_check]:checked").attr("value",1).attr("value");if($hdesc==1){$scode+=" desc=1"}var $hclass=$("#photo_class").val();if($hclass!=""){$scode+=" class='"+$hclass+"'"}var $lnktype=$("#link_type input[type=radio][name=link_type]:checked").attr("value");if($lnktype!="picture"){$scode+=" lnktype='"+$lnktype+"'"}var $scode="\t"+$scode+"] \n\r";$("#content").insertAtCaret($scode);if(tmce_ver>="4"){tinyMCE.execCommand("mceInsertContent",false,$scode)}else{tinyMCE.execInstanceCommand("content","mceInsertContent",false,$scode)}})});$("a#PWGP_rst").unbind().click(function(){$("li",$trash).appendTo($gallery);$("a#PWGP_Gen").hide();$("a#PWGP_rst").hide();$("#PWGP_show_stats").show().find("#PWGP_stats").text(" "+$("li",$gallery).size()+" / "+loaded)})});$("a#PWGP_Gen").show();$("a#PWGP_rst").show()}})});pwgp_Gallery_Display=false}else{$("div#PWGP_shortcoder").hide();pwgp_Gallery_Display=true}})})}(jQuery));
\ No newline at end of file
diff --git a/piwigopress.php b/piwigopress.php
index 1fcd1d2..d45510b 100644
--- a/piwigopress.php
+++ b/piwigopress.php
@@ -3,7 +3,7 @@
 Plugin Name: PiwigoPress
 Plugin URI: http://wordpress.org/extend/plugins/piwigopress/
 Description: PiwigoPress from any open API Piwigo gallery, swiftly includes your photos in Posts/Pages and/or add randomized thumbnails and menus in your sidebar.
-Version: 2.23
+Version: 2.23.1
 Author: vpiwigo ( for The Piwigo Team )
 Author URI: http://www.vdigital.org/sharing/
 */
@@ -48,7 +48,10 @@ function PiwigoPress_photoblog($parm) {
 		add_option( 'PiwigoPress_previous_url', $previous_url );
 	}
 	if ($url == '') $url = $previous_url;
-	if (substr($url,0,4)!='http') $url = 'http://' . $url;
+	# do not force http:// protocol, but allow for both
+	# local (starting with one slash) urls as well as
+	# remote but same protocol (starting with //)
+	#if (substr($url,0,4)!='http') $url = 'http://' . $url;
 	if (substr($url,-1)!='/') $url .= '/';
 	if ($previous_url != $url) update_option( 'PiwigoPress_previous_url', $url );
 	if ( !is_numeric($id) or $id < 1) {
@@ -150,11 +153,11 @@ function PiwigoPress_load_in_head() {
 	define('PWGP_CSS_FILE','');
 	if ( is_admin() ) {
 		echo '<link media="all" type="text/css" href="' . 
-			WP_PLUGIN_URL . '/piwigopress/css/piwigopress_adm.min.css?ver=' . PWGP_VERSION . '" id="piwigopress_a-css" rel="stylesheet">'; // that's fine
+			plugins_url( 'piwigopress/css/piwigopress_adm.min.css?ver=') . PWGP_VERSION . '" id="piwigopress_a-css" rel="stylesheet">'; // that's fine
 	}
 	else {
 		echo '<link media="all" type="text/css" href="' . 
-			WP_PLUGIN_URL . '/piwigopress/css/piwigopress.css?ver=' . PWGP_VERSION . '" id="piwigopress_c-css" rel="stylesheet">'; // that's fine
+			plugins_url( 'piwigopress/css/piwigopress.css?ver=') . PWGP_VERSION . '" id="piwigopress_c-css" rel="stylesheet">'; // that's fine
 	}
 }
 add_action('wp_head',  PWGP_NAME . '_load_in_head');
@@ -162,10 +165,10 @@ add_action('wp_head',  PWGP_NAME . '_load_in_head');
 // Script to be used
 function PiwigoPress_load_in_footer() {
 	/* Scripts */
-	wp_register_script( 'piwigopress_s', WP_PLUGIN_URL . '/piwigopress/js/piwigopress.js', array('jquery'), PWGP_VERSION );
+	wp_register_script( 'piwigopress_s', plugins_url( 'piwigopress/js/piwigopress.js'), array('jquery'), PWGP_VERSION );
 	wp_enqueue_script( 'jquery'); // include it even if it's done
 	if ( is_admin() ) {
-		wp_register_script( 'piwigopress_a', WP_PLUGIN_URL . '/piwigopress/js/piwigopress_adm.min.js', array('jquery'), PWGP_VERSION );
+		wp_register_script( 'piwigopress_a', plugins_url( 'piwigopress/js/piwigopress_adm.min.js'), array('jquery'), PWGP_VERSION );
 		wp_enqueue_script( 'jquery-ui-draggable' );
 		wp_enqueue_script( 'jquery-ui-droppable' );
 		wp_enqueue_script( 'piwigopress_a' );
@@ -200,4 +203,4 @@ function piwigopress_plugin_links($links, $file) {
 }  
   
 add_filter( 'plugin_row_meta', PWGP_NAME . '_plugin_links', 10, 2 );  
-?>
\ No newline at end of file
+?>
diff --git a/piwigopress_admin.php b/piwigopress_admin.php
index 4f043a1..0734780 100644
--- a/piwigopress_admin.php
+++ b/piwigopress_admin.php
@@ -22,7 +22,8 @@ if(!class_exists('PiwigoPress_Admin')){
 				'photo_class'		=>  (string) $_POST['photo_class'],
 				'link_type'			=>  (string) $_POST['link_type'],
 			));
-			if ( strlen($_POST['piwigopress_url']) > 6 ) update_option( 'PiwigoPress_previous_options', $PWGP_options );
+			# support local path, too
+			if ( strlen($_POST['piwigopress_url']) > 1 ) update_option( 'PiwigoPress_previous_options', $PWGP_options );
 		}
 		function Add_new_button($context=''){
 			$PWGP_options = serialize(array(
@@ -176,4 +177,4 @@ if (!is_object($PWG_Adm)) {
 	$PWG_Adm = new PiwigoPress_Admin();
 }
 
-?>
\ No newline at end of file
+?>
diff --git a/readme.txt b/readme.txt
index fcd219b..9b3f5a6 100644
--- a/readme.txt
+++ b/readme.txt
@@ -139,6 +139,13 @@ Picture is going to have a link to its most recent Album page (Upcoming releases
 
 == Changelog ==
 
+= 2.23.1 =
+(changes either from formum for initial piwigo 1.6 compatibility,
+or developed by Norbert Preining)
+* fix compatibility with piwigo 1.6
+* allow url to be "/foo/bar" like on local server, preserving http(s)
+* fix compatibility with tinyMCE v4 (WordPress 1.9)
+
 = 2.23 =
 * WordPress 3.5.1 support  
 * Bug: WordPress corrupted RSS feeds ( http://wordpress.org/support/topic/rss-feed-100?replies=4 ) 
@@ -204,4 +211,4 @@ Performances
 Swiftly transform your blog in a photoblog. 
 
 = 2.00 = 
-Previous PiwigoPress releases didn't support the most Piwigo recent releases (if you upgrade your Piwigo Gallery to 2.4.x or above, PiwigoPress 1.04 and older releases will fail).
\ No newline at end of file
+Previous PiwigoPress releases didn't support the most Piwigo recent releases (if you upgrade your Piwigo Gallery to 2.4.x or above, PiwigoPress 1.04 and older releases will fail).
diff --git a/thumbnails_reloader.php b/thumbnails_reloader.php
index 274ea2c..5490e0b 100644
--- a/thumbnails_reloader.php
+++ b/thumbnails_reloader.php
@@ -24,7 +24,9 @@
 		$page++;
 		$thumbc = unserialize($response);
 		if ($thumbc["stat"] == 'ok') {
-			$pictures = $thumbc["result"]["images"]["_content"];
+			/* try to fix loading for piwigo 2.6
+			** $pictures = $thumbc["result"][ "images"]["_content"]; */
+			$pictures = $thumbc["result"][ "images"];
 			if (!isset($pictures[0]['derivatives']['square']['url'])) {
 				echo "<li>Warning: No available public picture or Piwigo release < 2.4.x</li>\n"; // How POedit that ???
 				return;
