Oh, now I am not sure. This is a site I have inherited.
It says 1.5.7a but obviously the line is not in the default Zen code. (or in 1.5.0) So, I don't know.
What I am seeing on this site is this: (but it might be non-standard and someone has edited in the past.)
Code:
function size($class)
{
if (!empty($_SESSION['messageToStack'])) {
foreach ($_SESSION['messageToStack'] as $next_message) {
$this->add($next_message['class'], $next_message['text'], $next_message['type']);
}
}
$_SESSION['messageToStack'] = array();
$count = 0;
foreach ($this->messages as $next_message) {
if ($next_message['class'] == $class) {
$count++;
}
}
return $count;
}
But your point about it being unnecessary anyway on Github makes a lot of sense :-)
Bookmarks