Dotclear

Ticket #471: templateWidget_php53.patch

File templateWidget_php53.patch, 1.6 KB (added by bruno, 13 years ago)
  • _public.php

     
    5151class templateWidgetBlocksAndValues 
    5252{ 
    5353  // widget display only consists in displaying the corresponding template file 
    54   public static function WidgetCore(&$widget) 
     54  public static function WidgetCore($widget) 
    5555  { 
    5656    global $core, $_ctx; 
    5757    $_ctx->widget = $widget; 
     
    180180 
    181181class templateWidgetBehaviors 
    182182{ 
    183   public static function loadVisitorCookie(&$core) 
     183  public static function loadVisitorCookie($core) 
    184184  { 
    185185    global $_ctx; 
    186186    if(@$_ctx->comment_preview['name']) 
  • inc/class.WidgetAdmin.php

     
    2727class templateWidgetAdmin 
    2828{ 
    2929  // behaviour for widget initialization 
    30   public static function InitWidgets(&$widgets) { 
     30  public static function InitWidgets($widgets) { 
    3131    $activeWidgets = new templateWidgetSettings(); 
    3232    // loop on all template widgets definitions and create associated widgets 
    3333    foreach (self::GetAllWidgetDefinitions() as $widgetId => $widgetDefinition) { 
     
    7474  } 
    7575   
    7676  // behaviour for widget initialization 
    77   private static function CreateWidget(&$widgets,$widgetDefinition) { 
     77  private static function CreateWidget($widgets,$widgetDefinition) { 
    7878    $widgetId = $widgetDefinition['id']; 
    7979    $widgets->create($widgetId,__($widgetDefinition['name']),array('templateWidgetBlocksAndValues','WidgetCore')); 
    8080     

Sites map