1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-11 08:34:59 +02:00

Revert "empty substitutions are going to be deprecated" commit e50b1a0b5a.

This commit is contained in:
David Grudl
2010-08-05 23:55:59 +02:00
parent 3568e041c5
commit f651d9f473
2 changed files with 11 additions and 4 deletions

View File

@@ -638,9 +638,6 @@ class dibi
*/
public static function addSubst($expr, $subst)
{
if ($expr === '') {
trigger_error(__METHOD__ . ': empty substitutions will probably be deprecated.', E_USER_NOTICE);
}
self::$substs[$expr] = $subst;
}
@@ -656,7 +653,7 @@ class dibi
if ($expr === TRUE) {
self::$substs = array();
} else {
unset(self::$substs[$expr]);
unset(self::$substs[':'.$expr.':']);
}
}