Seems I got the only remaining instance of set_default(),
so it's time to draw the curtains.
This commit is contained in:
@@ -546,18 +546,6 @@ function optional_variable(&$var, $default=0) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* HACK ALERT! Do not use this function, it will be removed soon!!
|
||||
* @todo Remove this function soon!
|
||||
*/
|
||||
function set_default( &$var, $default ) {
|
||||
if (empty($var)) {
|
||||
$var = $default;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a key in global configuration
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user