Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array_pre and array_after output, but no content #1

Open
bernardladenthin opened this issue Aug 27, 2011 · 0 comments
Open

array_pre and array_after output, but no content #1

bernardladenthin opened this issue Aug 27, 2011 · 0 comments

Comments

@bernardladenthin
Copy link
Owner

As example call the tpl_link_array with $available_actions. If subscribe is disabled, the tpl_link_array output $array_pre and $array_after in return=fals mode. This wontfix! A workaround is to use a self created $available_actions or use the function in return=true mode and check for a concatination of $array_pre.$array_after and delete it from string. Then echo.

Workaround:

$types = array(
array(
'type' => 'login',
'pre' => '',
'suf' => '',
'inner' => ''
)
);
if($blextra) {
if(isset($_SERVER['REMOTE_USER'])) {
$types = $blextra->available_actions;
}
$array_pre = '

  • ';
    $array_after = '
  • ';
    $actionlinks = $blextra->tpl_actionlink_array($types,$array_pre,$array_after,true);
    $actionlinks = str_replace ($array_pre.$array_after,'',$actionlinks);
    echo $actionlinks;
    }

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant