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

Badges page invalid html #48

Open
doekia opened this issue Feb 6, 2016 · 1 comment
Open

Badges page invalid html #48

doekia opened this issue Feb 6, 2016 · 1 comment

Comments

@doekia
Copy link

doekia commented Feb 6, 2016

It seems there is a bug on the badge page list.

Actually I have fixed it with this nasty patch on line 109 of qa-badge-page.php:

foreach($qa_content as $k => &$v) {
        if(strpos($k,'custom') !== 0)
                continue;
    if (in_array($k, array('custom','custom2')))
        continue;
    $qa_content['custom2'] .= $v;
    unset($qa_content[$k]);
}

$qa_content['custom2'] .='<tr><td class="badge-entry"><span class="total-badges">'.count($badges).' '.qa_lang('badges/badges_total').'</span>'.($totalawarded > 0 ? ', <span class="total-badge-count">'.$totalawarded.' '.qa_lang('badges/awarded_total').'</span>':'').'</td></tr></table>';
@NonlinearFruit
Copy link

I have verified that this fix works. Thanks @doekia!

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

2 participants