bug #33563 : error_reporting(-1)
This commit is contained in:
parent
6f27293a8b
commit
a17d7c7ee0
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
/**
|
||||
* \file htdocs/boxes.php
|
||||
* \brief Fichier de la classe boxes
|
||||
* \brief File of class to manage widget boxes
|
||||
* \author Rodolphe Qiedeville
|
||||
* \author Laurent Destailleur
|
||||
* \version $Id$
|
||||
@ -228,7 +228,7 @@ class InfoBox
|
||||
}
|
||||
|
||||
include_once($sourcefile);
|
||||
$box=new $boxname($db,$obj->note);
|
||||
$box=new $boxname($this->db,$obj->note);
|
||||
|
||||
$box->rowid=$obj->rowid;
|
||||
$box->box_id=$obj->box_id;
|
||||
|
||||
@ -148,7 +148,7 @@ class box_actions extends ModeleBoxes {
|
||||
}
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ class box_bookmarks extends ModeleBoxes {
|
||||
}
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -127,7 +127,7 @@ class box_clients extends ModeleBoxes {
|
||||
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -136,7 +136,7 @@ class box_commandes extends ModeleBoxes {
|
||||
}
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -148,7 +148,7 @@ class box_comptes extends ModeleBoxes {
|
||||
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -125,7 +125,7 @@ class box_contacts extends ModeleBoxes {
|
||||
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -145,7 +145,7 @@ class box_contracts extends ModeleBoxes {
|
||||
}
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -156,7 +156,7 @@ class box_external_rss extends ModeleBoxes {
|
||||
}
|
||||
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ class box_factures extends ModeleBoxes {
|
||||
}
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -145,7 +145,7 @@ class box_factures_fourn extends ModeleBoxes {
|
||||
}
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -145,7 +145,7 @@ class box_factures_fourn_imp extends ModeleBoxes {
|
||||
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -147,7 +147,7 @@ class box_factures_imp extends ModeleBoxes {
|
||||
}
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -122,7 +122,7 @@ class box_fournisseurs extends ModeleBoxes {
|
||||
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ class box_members extends ModeleBoxes {
|
||||
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ class box_osc_clients extends ModeleBoxes {
|
||||
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ class box_produits extends ModeleBoxes {
|
||||
while ($i < $num)
|
||||
{
|
||||
$objp = $db->fetch_object($result);
|
||||
$datem=$db->jdate($obj->tms);
|
||||
$datem=$db->jdate($objp->tms);
|
||||
|
||||
// Multilangs
|
||||
if ($conf->global->MAIN_MULTILANGS) // si l'option est active
|
||||
@ -156,7 +156,7 @@ class box_produits extends ModeleBoxes {
|
||||
}
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -141,7 +141,7 @@ class box_propales extends ModeleBoxes {
|
||||
}
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -134,7 +134,7 @@ class box_prospect extends ModeleBoxes {
|
||||
}
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -161,7 +161,7 @@ class box_services_vendus extends ModeleBoxes {
|
||||
|
||||
}
|
||||
|
||||
function showBox()
|
||||
function showBox($head = null, $contents = null)
|
||||
{
|
||||
parent::showBox($this->info_box_head, $this->info_box_contents);
|
||||
}
|
||||
|
||||
@ -205,13 +205,13 @@ class ModeleBoxes
|
||||
if (! empty($contents[$i][$j]['maxlength'])) $maxlength=$contents[$i][$j]['maxlength'];
|
||||
|
||||
if ($maxlength) $textewithnotags=dol_trunc($textewithnotags,$maxlength);
|
||||
if (preg_match('/^<img/i',$texte) || $contents[$i][$j]['asis']) print $texte; // show text with no html cleaning
|
||||
if (preg_match('/^<img/i',$texte) || ! empty($contents[$i][$j]['asis'])) print $texte; // show text with no html cleaning
|
||||
else print $textewithnotags; // show text with html cleaning
|
||||
|
||||
// End Url
|
||||
if (! empty($contents[$i][$j]['url'])) print '</a>';
|
||||
|
||||
if (preg_match('/^<img/i',$texte2 || $contents[$i][$j]['asis2'])) print $texte2; // show text with no html cleaning
|
||||
if (preg_match('/^<img/i',$texte2) || ! empty($contents[$i][$j]['asis2'])) print $texte2; // show text with no html cleaning
|
||||
else print $texte2withnotags; // show text with html cleaning
|
||||
|
||||
print "</td>";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user