Ticket #471: templateWidget_php53.patch
File templateWidget_php53.patch, 1.6 KB (added by bruno, 13 years ago) |
---|
-
_public.php
51 51 class templateWidgetBlocksAndValues 52 52 { 53 53 // widget display only consists in displaying the corresponding template file 54 public static function WidgetCore( &$widget)54 public static function WidgetCore($widget) 55 55 { 56 56 global $core, $_ctx; 57 57 $_ctx->widget = $widget; … … 180 180 181 181 class templateWidgetBehaviors 182 182 { 183 public static function loadVisitorCookie( &$core)183 public static function loadVisitorCookie($core) 184 184 { 185 185 global $_ctx; 186 186 if(@$_ctx->comment_preview['name']) -
inc/class.WidgetAdmin.php
27 27 class templateWidgetAdmin 28 28 { 29 29 // behaviour for widget initialization 30 public static function InitWidgets( &$widgets) {30 public static function InitWidgets($widgets) { 31 31 $activeWidgets = new templateWidgetSettings(); 32 32 // loop on all template widgets definitions and create associated widgets 33 33 foreach (self::GetAllWidgetDefinitions() as $widgetId => $widgetDefinition) { … … 74 74 } 75 75 76 76 // behaviour for widget initialization 77 private static function CreateWidget( &$widgets,$widgetDefinition) {77 private static function CreateWidget($widgets,$widgetDefinition) { 78 78 $widgetId = $widgetDefinition['id']; 79 79 $widgets->create($widgetId,__($widgetDefinition['name']),array('templateWidgetBlocksAndValues','WidgetCore')); 80 80