Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1945)
+++ branches/2.8.x/CHANGELOG	(revision 1946)
@@ -11,6 +11,8 @@
 ! = Update/Change
 ===============================================================================
 
+03 Aug-2013 Build 1946 M.v.d.Decken(DarkViper)
+! Droplet iParentPageIcon
 03 Aug-2013 Build 1945 M.v.d.Decken(DarkViper)
 ! module/MultiLingual updated for make use of different graphics format
 + Droplet to use Multilingual in index.php of template
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1945)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1946)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.3');
-if(!defined('REVISION')) define('REVISION', '1945');
+if(!defined('REVISION')) define('REVISION', '1946');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/modules/droplets/example/iParentPageIcon.php
===================================================================
--- branches/2.8.x/wb/modules/droplets/example/iParentPageIcon.php	(revision 1945)
+++ branches/2.8.x/wb/modules/droplets/example/iParentPageIcon.php	(revision 1946)
@@ -1,4 +1,4 @@
-//:search for icon in current page and parent pages if not found
+//:search for an image in current page. If no image is present, the image of the parent page is inherited.
 //:Use: [[iParentPageIcon?type=1]] Display the page-icon(0)(default) or menu_icon_0(1) or menu_icon_1(2) if found
 // @author: Werner von der Decken
 // @param int $type: 0=page_icon(default) | 1=menu_icon_0 | 2=menu_icon_1
@@ -5,7 +5,8 @@
 // @param string $icon: name of a default image placed in WB_PATH/TEMPLATE/
 // @return: a valid image-URL or empty string
 //
-global $wb, $database;
+
+$oDb = WbDatabase::getInstance();
 $type = !isset($type) ? 0 : (intval($type) % 3);
 $icontypes = array( 0=>'page_icon', 1=>'menu_icon_0', 2=>'menu_icon_1');
 $icon_url = '';
@@ -13,14 +14,13 @@
 {
 	$icon_url = WB_REL.'/templates/'.TEMPLATE.'/'.$icon;
 }
-$tmp_trail = $wb->page_trail;
-$tmp_trail = array_reverse($tmp_trail);
+$tmp_trail = array_reverse($GLOBALS['wb']->page_trail);
 foreach($tmp_trail as $pid)
 {
 	$sql  = 'SELECT `'.$icontypes[$type].'` ';
-	$sql .= 'FROM `'.TABLE_PREFIX.'pages` ';
+	$sql .= 'FROM `'.$oDb->TablePrefix.'pages` ';
 	$sql .= 'WHERE `page_id`='.(int)$pid;
-	if( ($icon = $database->get_one($sql)) != false )
+	if( ($icon = $oDb->get_one($sql)) != false )
 	{
 		if( file_exists(WB_PATH.$icon) )
 		{
