Hello,
Je suis en train de me demander s'il ne serait pas intéressant de
gérer les "deprecated" dans une partie dédiée de dotclear. Ca
permettrait de rassembler à un endroit (dcLog, par exemple) l'ensemble
des choses obsolescentes.
On a rencontré le cas pour les settings, maintenant pour les listes,
et d'autres deprecated arriveront probablement aussi prochainement.
Z'en dites ?
--
Bruno
---------- Forwarded message ----------
From: <hg(a)dotclear.org>
Date: 2011/7/7
Subject: [Dotclear Tracker] [531]: formfilters - Raised user notice
when using old list class
To: tracker(a)list.dotclear.net
Revision: 531 (f4036d98db10} Branch: formfilters Author: Tomtom33
Date: 2011-07-07 09:43 +0200 Details: Details:
http://dev.dotclear.org/2.0/changeset/f4036d98db10
Log Message
Raised user notice when using old list class
diffstat:
inc/admin/lib.pager.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r dcc52465d944 -r f4036d98db10 inc/admin/lib.pager.php
--- a/inc/admin/lib.pager.php Wed Jul 06 15:27:25 2011 +0200
+++ b/inc/admin/lib.pager.php Thu Jul 07 09:43:26 2011 +0200
@@ -36,7 +36,7 @@
{
// For backward compatibility only: the developer tried to create
// a list with the old constructor.
- $this->raiseDeprecated(get_class($this));
+ ob_start($this->raiseDeprecated(get_class($this)));
$this->core =& $core;
$this->rs =& $rs;
@@ -58,7 +58,7 @@
array_shift($trace);
$grand = array_shift($trace);
$msg = 'Deprecated class called. (';
- $msg .= $name . ' was called from
'.$grand['file'].' ['.$grand['line'].'])';
+ $msg .= $name.' was called from
'.$grand['file'].' ['.$grand['line'].'])';
trigger_error($msg, E_USER_NOTICE);
}
}
--
Tracker mailing list
Tracker(a)list.dotclear.net
http://ml.dotclear.net/listinfo/tracker