plugins/locale/share/data_handlers/languages.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

$data = [];
$Q = db()->query('SELECT * FROM ' . db('locale_langs') . ' WHERE active="1" ORDER BY locale ASC');
while ($A = db()->fetch_assoc($Q)) {
    $data[$A['locale']] = $A['locale'];
}
return $data;