Dotclear

Ticket #693: no-plugin-error.patch

File no-plugin-error.patch, 615 bytes (added by peck, 16 years ago)
  • plugins/widgets/class.widgets.php

    old new  
    146146          if (is_callable($this->public_callback)) { 
    147147               return call_user_func($this->public_callback,$this,$i); 
    148148          } 
    149           return '<p>Callback not found for widget '.$this->id.'</p>'; 
     149          if (ini_get("display_errors") != "Off") { 
     150               return '<p>Callback not found for widget '.$this->id.'</p>'; 
     151          } 
     152          return ''; 
    150153     } 
    151154      
    152155     /* Widget settings 
     
    230233          return $res; 
    231234     } 
    232235} 
    233 ?> 
    234  Pas de fin de ligne à la fin du fichier. 
     236?> 

Sites map