4
As stupid as it sounds, you can't... (but you're free to post it as a feature request, it would be a no-risk 5mins change
).
Anyway, if you really need that right now, you can find the following lines in class/xoopsblock.php:
// execute the function
$block = $show_func($options);
if ( !$block ) {
return false;
}
and replace the function call by
$show_func( $options, $this );once this is done, you should get the current XoopsBlock object instance passed as a 2nd parameter (and thus access the block id using
$yourparamname->getVar( 'bid' ) from the block function).
PS: It's for 2.0.x... for 2.2.x the file to change is kernel/block.php
PS2: The feature requests trackers can be accessed by using the "Report core bug" on the left, then "Feature requests"
skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)