Commit Graph

317 Commits

Author SHA1 Message Date
Mafoo
3c23fb5115 BugFix [master] language update (#2628)
Imported Found language ro as ro-ro Romanian (tested by reverse translation)
Add placeholders for all found languages
Add new missing flags
Enhancements to text class
* improved sort to keep language-* tags organized at the top
* if a language is missing a name tag, add it
* changed organizer to not add a final \n
* corrected some indenting
* added detect_all_languages that attempts to find any languages that haven't been defined in resources/app_languages.php
* added language_totals, this is used by the optional languages application to calculate how complete a language is
2017-06-02 13:24:12 -06:00
Mafoo
b4dce6f4f2 BugFix [master] - Convert all menus to 2-2 format (#2627)
convert all app_menu.php files to have all placeholders and languages and use 2-2 format for languages
update app_defaults to convert any items found using legacy values in user_setings, domain_settings and default_settings
2017-06-02 12:17:50 -06:00
Mafoo
97ecc657a1 BugFix [master] - menu class (#2622)
when a translation is missing/blank take it from en-us
take the list of lanaguages from text class so all languages get a value
(should fix missing logout button in some languages)
2017-06-01 10:21:21 -06:00
Mafoo
584679503e BugFix [master] - messages class (#2618)
htmlspecialchars isn't required for the javascript, only the \r?\n escape
2017-05-31 14:09:07 -06:00
Mafoo
f2e1fa6290 BugFix [master] - messages class escape more text automatically (#2612)
because we are using javascript to populate the messages list we need to
make sure all special chars are escaped or line feeds will cause
problems
2017-05-30 13:44:51 -06:00
Mafoo
52642ea175 BugFix [master] database class (#2594)
Fix for if you send an array containing both updates and new data, it would end up placing all the new data on top of the last item containing the uuid of the last update (if updates are earlier in the array than new items)
2017-05-28 10:18:07 -06:00
Mafoo
d53fd72998 Enhance [master] Better reasons for 403 in database class (#2596)
update return message when code 403 to also state the permission that failed
2017-05-25 23:54:10 -06:00
Mafoo
7ec01104f5 BugFix [master] text class (#2598)
update escape_str to more reliabiliy escape the string into a consistent
format
2017-05-23 09:26:33 -06:00
Mafoo
55ae0b2b42 Enhance - Convert all languages to 2-2 digit (#2581)
Convert all languages to use the en-us style codes
Where an installation is using a 2 digit code, use the legacy map to find
the mapped language and provide that text correctly
Have escape_str strip \' before converting or we end up with a double
encode
Update organzie_languages to understand how to convert legacy languages
automatically
updated flags
2017-05-13 13:13:38 -06:00
Mafoo
543a555471 reworked text class to gather the languages on construction (more efficient) (#2576)
organize_languages will now use an internal function to escape values as fusion's check_str would not be appropriate
enabled two missing flags
organize on remaining app_languages.php and add missing 'he'
2017-05-12 08:44:53 -06:00
Mafoo
bca24ac04d BugFix [master] Languages add missing text placeholders (#2572)
* BugFix [master] Languages add missing text placeholders

add placeholders for missing language text
reorganise file so languages are in a consistent order with en-us always first, and the remaining stored alphabetically
space out tag names to make them line up for readability

* add organize_language to text class

also add get_languages
2017-05-10 13:40:46 -06:00
Mafoo
e2d34a856b Enhance-Add message stack (#2521)
Implement new messages class
Support legacy $_SESSION['message_*']
New function messages::add($message, $mood, $delay) to simplify adding messages
updated core/users/user_edit.php to demonstrate
includes space->tab corrections
2017-04-27 11:30:52 -06:00
FusionPBX
71736c19e7 Update database.php 2017-03-17 00:09:32 -06:00
FusionPBX
fa52a380bb Update database.php 2017-03-16 22:20:11 -06:00
FusionPBX
5f0dccbb0f Update destinations.php 2017-02-22 20:59:30 -07:00
FusionPBX
f40b8bfd47 Update schema.php 2017-02-16 00:03:33 -07:00
FusionPBX
a5e47971be Update domains.php 2017-01-17 13:37:26 -07:00
jalr
7cbfb6f629 fix condition (#2298) 2017-01-17 10:16:13 -07:00
FusionPBX
dad5aecd49 Update domains.php 2017-01-14 18:17:21 -07:00
FusionPBX
b34f1769f0 Update domains.php 2017-01-14 18:15:34 -07:00
FusionPBX
0601c4ad71 Minor syntax fix spotted in dry run now activate. 2017-01-14 14:39:05 -07:00
FusionPBX
7c93ac7901 Add the settings method to the upgrade method. 2017-01-14 14:33:05 -07:00
FusionPBX
6dcf03f23c Add the settings method to the domains class. 2017-01-14 13:15:03 -07:00
FusionPBX
dc15600b84 Update event_socket.php 2017-01-11 14:43:45 -07:00
FusionPBX
b32aaeb331 Update groups.php
Prevent warnings in groups.php.
2017-01-11 14:39:40 -07:00
FusionPBX
c5ae1f13f0 Update event_socket.php
Add freeswitch defaults to event_socket.php
2017-01-11 14:14:47 -07:00
FusionPBX
7aacee9b37 Update groups.php 2017-01-10 07:55:09 -07:00
FusionPBX
cdf9bcde8e Update switch_settings.php 2017-01-10 01:18:17 -07:00
FusionPBX
921aef7f24 Update schema.php 2017-01-05 03:58:01 -07:00
FusionPBX
be18b77b8e Update schema.php
Prevent php warnings.
2017-01-05 03:53:02 -07:00
FusionPBX
211754ff6e Update schema.php 2016-12-18 16:48:24 -07:00
FusionPBX
de3f56fc20 Update database.php
An improvement to make the database class more robust.
2016-11-27 00:16:18 -07:00
FusionPBX
f8d40ccc6d Update database.php
Update the database class delete method.
2016-11-23 13:39:20 -07:00
FusionPBX
d958bea7b2 Update database.php
Enhance database->delete() method.
2016-11-19 14:10:06 -07:00
FusionPBX
03210fe78f Update database.php 2016-11-19 11:57:36 -07:00
FusionPBX
3027bdf9df Update database.php
Changes for database -> delete() keeping for the moment for backwards compatibility.
2016-11-19 11:49:38 -07:00
FusionPBX
76edd90efd Update database.php
Add database -> select method.
2016-11-02 12:31:59 -06:00
FusionPBX
fa55b67bb0 Update database.php 2016-10-20 15:03:52 -06:00
FusionPBX
28e052c353 Update database.php
Migrate methods from the orm class to the database class. Will be deprecating the orm class.
2016-10-16 10:45:04 -06:00
FusionPBX
d98bac68a6 Update orm.php
Escape single quotes in the data.
2016-10-05 09:55:02 -06:00
FusionPBX
c7d9231788 Update orm.php
The change from fetch to fetchAll created the need for this change.
2016-10-04 03:49:32 -06:00
FusionPBX
bcb7881255 Update orm.php
Change the function fetch to fetchAll. Fetch returns a 2 dimensional array and fetchAll returns a 3 dimensional array. which changes the array structure so it works better with count.
2016-10-03 21:33:20 -06:00
FusionPBX
d020eeecec Update orm.php 2016-10-01 21:55:02 -06:00
FusionPBX
df7d935dcf Update permissions.php 2016-10-01 12:07:47 -06:00
FusionPBX
8db7cba83e Update orm.php 2016-09-30 19:54:40 -06:00
FusionPBX
a23c2a957a Update orm.php 2016-09-28 16:42:42 -06:00
FusionPBX
d190f6a30d Update orm.php
Updated code to be more robust and handle more situations such as primary key and child key in the array but doesn't exist in the database.
2016-09-18 15:27:40 -06:00
FusionPBX
b78b9d91bd Update permissions.php 2016-09-12 15:42:28 -06:00
FusionPBX
913776ba67 Update permissions.php 2016-09-12 15:40:02 -06:00
FusionPBX
60c9477d2f Update domains.php 2016-09-10 17:33:47 -06:00