Fixed  Lowercase 'Open' in Moderation Queue

Jeremy P

Well-known member
Haven't looked into it but I noticed that the word 'Open' for reports in the queue is not capitalized..

xenforo.jpg
 

Brogan

XenForo moderator
Staff member
I've just checked on here and on my site and it is capitalised.

Are you running RC2?

Have you perhaps edited the phrase?
 

Brogan

XenForo moderator
Staff member
It's a phrase: open_report

Unless you've edited the template and hard-coded it?

The template is report_view
 

Jeremy P

Well-known member
The phrase open_report exists and is capitalized. Hmm.

prepareReport() in XenForo_ReportHandler_Abstract..
PHP:
switch ($report['report_state'])
{
	case 'open': $report['reportState'] = new XenForo_Phrase('open'); break;
    /* ... */
}
I don't have a phrase with the id 'open'.
 

Brogan

XenForo moderator
Staff member
Ah, scratch my earlier, it's probably been fixed in the next release and has more than likely been rolled out here.

So I expect it was a bug and has now been fixed.

Let me check the latest equivalent of the code you posted above.

Yep, here's the new code:
PHP:
        switch ($report['report_state'])
        {
            case 'open': $report['reportState'] = new XenForo_Phrase('open_report'); break;
I'll mark this as already fixed :)
 

Mike

XenForo developer
Staff member
The issue is definitely fixed here - that's what Brogan was saying, indicating that it was likely fixed after the release.
 
Top