Commit 7d877d27 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1891237: Adding back in a missing string for statistics



Change-Id: I4b20855666996d466931683e3a0414a1015e5c30
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
parent 7d0d2b4a
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -65,6 +65,15 @@ if (!defined('CRON')) {
                    }
                }
            }
            // in case any cached data get cached with a broken label string
            if (isset($jsondata->labels) && is_array($jsondata->labels)) {
                foreach ($jsondata->labels as $key => $label) {
                    if (preg_match('/^\[\[(.*?)\/(.*?)\]\]$/', $label, $matches)) {
                        $jsondata->labels[$key] = get_string($matches[1], $matches[2]);
                    }
                }
            }

            $data['datastr'] = json_encode($jsondata);
            $data['configstr'] = json_encode($data['configs']);
            json_reply(false, array('data' => $data));
+2 −0
Original line number Diff line number Diff line
@@ -457,9 +457,11 @@ $string['mostcomments1'] = 'Most comments';
// View types
$string['dashboard'] = 'Dashboard';
$string['Profile'] = 'Profile';
$string['profile'] = 'profile'; // for stats
$string['Portfolio'] = 'Portfolio';
$string['Portfolios'] = 'Portfolios';
$string['Grouphomepage'] = 'Group homepage';
$string['grouphomepage'] = 'group homepage'; // for stats

$string['grouphomepagedescription'] = 'The group homepage contains the content that appears on the "About" tab for this group';
$string['pageaccessrules'] = 'Page access rules';