Commit Graph

49 Commits

Author SHA1 Message Date
FusionPBX ad8a022e48
Update menu.php 2017-11-17 14:44:31 -07:00
FusionPBX 20292017cc
Update menu.php 2017-11-17 14:28:07 -07:00
FusionPBX 077f2adf53
Update menu.php 2017-11-17 13:06:04 -07:00
FusionPBX 83cc908e75 Update menu.php 2017-07-01 16:05:25 -06:00
FusionPBX 60106b605f Update menu.php 2017-07-01 14:13:51 -06:00
Mafoo 7015209e54 Enhance [master] provide $app_path during upgrade (#2573)
if a application is installed via a symlink PHP will resolve the symlink
for __DIR__ and __FILE__ making it impossible for an application to work
out it's relative path withing the fusion system.
By providing $app_path during upgrade routines an application will
beable to provide the correct link for menu items (e.g.
/opt/languages/index.php) instead of having to hard code it where it
could change depending on how the application was installed
2017-06-08 09:41:56 -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
reliberate 5956a3a17f Menu Manager: Add ability to customize main and sub menu icons. 2016-05-02 14:42:06 -06:00
Harry G. Coin 89e5ecbcdf The goal is to increase confidence in fusionpbx, one step is to run by default with error_reporting (E_ALL ^ E_NOTICE);
So, please find in this set numerous small changes which eliminate numerous php warning messages.

Also, a small bug fix in an sql statistics routine, naming a count(*) field as count, so displaying correct detail.

If any of the proposed changes are omitted, the relevant page will experience php warnings.

There are no doubt fusionpbx pages I've yet to visit that still generate warnings, this set is nearly certainly not comprehensive.
2016-04-25 20:19:58 -05:00
markjcrane 69d36b806d Add class_exists 2016-04-14 23:23:14 -06:00
markjcrane f3a0a8b153 Add a default group check. 2016-04-03 11:54:09 -06:00
FusionPBX 1e9837f77b Merge pull request #1527 from moteus/menu_array_default_arg
Fix. Use default value in function definition.
2016-03-30 08:49:29 -06:00
Alexey Melnichuk 43a023575a Fix. warning about using NULL as first argument in `foreach`.
Problem now in `tepmplate.php`
```PHP
$menu_array = $menu->menu_array();
...
foreach ($menu_array as $index_main => $menu_parent) {
```

It appear while install process because in this moment there not `$db`
and `$menu->menu_array()` returns nothing.

This problem also can be solved in `tepmplate.php` like
```PHP
if(is_array($menu_array)){
  foreach ($menu_array as $index_main => $menu_parent) {
...
```
2016-03-30 10:15:49 +03:00
Alexey Melnichuk ec95fc5f24 Fix. Use default value in function definition.
On `themes/default/template.php` it called without args
```PHP
$menu_array = $menu->menu_array();
```

And it produce PHP warning.
2016-03-30 09:39:15 +03:00
markjcrane 812f41b48e Add the menu_default method to app_defaults.php. 2016-03-26 22:59:00 -06:00
markjcrane c7e90ebd26 Change the method name to menu_default. 2016-03-26 21:22:52 -06:00
markjcrane f7aa8725e8 Add methoed 'default' to the menu class. 2016-03-26 21:18:02 -06:00
markjcrane 100932656a Fix the reference to the prepared statement. 2016-03-26 14:03:44 -06:00
markjcrane ac4aef20b0 Change the code in the menu to return immediately if the database object is not ready in this case its not ready until the install.php is finished. 2016-03-26 13:36:00 -06:00
markjcrane 5eef464cf3 Additional work to improve the install, template and the menu. 2016-03-26 12:22:15 -06:00
markjcrane aa89c4fe26 Don't error if the menu is not available for the install.php. 2016-03-26 11:45:57 -06:00
reliberate 85c971eec8 Menu: Updated code to create menu HTML from array, instead of database directly. 2015-07-30 11:49:51 -06:00
Mark Crane 93e788399a Add menu array to the menu class. 2015-06-22 17:56:40 +00:00
Nate Jones e00f3ce583 Misc: Removed use of GLOB_BRACE as doesn't work on some systems, use non-GLOB_BRACE method instead. Thanks [xming] and Risk64. Should resolve Issue 916, as well. 2015-05-12 18:11:05 +00:00
Nate Jones 0eecb60280 Menu: Re-enable Restore Default button for menus other than default, adjust other code to work better with non-default menus. 2015-05-12 06:31:34 +00:00
Nate Jones fba18b1c6b Menu: Restore Default now restores unprotected menu items and their default groups. Removed Restore All function (no longer necessary). Hide Restore Default button for menus other than the default menu. 2015-05-12 03:03:09 +00:00
Mark Crane db523f4f68 Fix the main menu color. 2015-01-09 20:57:40 +00:00
Mark Crane 3164693197 Add debug information. 2014-12-27 17:49:35 +00:00
Mark Crane cec874e932 Need to add GLOB_BRACE to support the {menu,config} 2014-12-27 17:30:07 +00:00
Mark Crane 449daffbef Change the | to a comma had to review the syntax on the glob command. 2014-12-27 17:28:07 +00:00
Mark Crane 7889e26cfa Add $y = 0; and a try catch block to the menu. 2014-12-27 17:22:57 +00:00
Mark Crane a6bea0aa6f Add a try catch to the menu include loop. 2014-12-27 07:25:11 +00:00
Mark Crane ddca77629e Move the menu array to app_menu.php 2014-12-26 03:27:54 +00:00
Mark Crane 3a3a4ec8f0 Add primary key uuid to menu item group inserts 2014-09-20 04:01:53 +00:00
Mark Crane b379375529 Move domain upgrade into the domain class and upgrade_schema into the schema class 2014-07-15 05:46:15 +00:00
Mark Crane 571f5b912b Limit the transaction for the menu to SQLite. 2014-03-21 06:29:00 +00:00
Mark Crane 604517b605 Add the SQL transactions back again to speed up install and menu restore. 2014-03-19 05:19:48 +00:00
Mark Crane 984ca4faad Comment out the transaction support for the menu. 2014-02-16 09:04:52 +00:00
Nuno Miguel Reis 25f5868a4f removed utf8encode not needed after all (local bug was causing the issues elsewhere) 2014-01-21 03:25:56 +00:00
Nuno Miguel Reis bd06d75b4a added protection by encoding in utf8 2014-01-20 21:22:24 +00:00
Nuno Miguel Reis 975d1bd561 menu fixing utf8 and ring groups pt-ring option 2014-01-16 23:30:56 +00:00
Mark Crane 202042fa38 Change menu class method restore2 to restore_all. Remove group permissions from restore (Restore Default) and leave in restore_all (Restore All) 2013-11-24 01:35:37 +00:00
Mark Crane 32df6f40d9 Improve the efficiency of the Menu PHP class by removing redundant code in the restore method of the PHP class and add PDO transactions. Improve the menu language for better multi-lingual support, escape the menu item title to so it will work correctly for French and other languages. 2013-11-24 00:15:02 +00:00
Mark Crane 5ff597ffc9 Cleanup the menu class fixup the white space problems. 2013-09-27 04:15:43 +00:00
Mark Crane d872af2666 Change the menu back asc order. 2013-07-29 19:40:48 +00:00
Nuno Miguel Reis e939b9e0d2 added db menu build and permissions block 2013-07-29 18:55:51 +00:00
Nuno Miguel Reis 2fed568403 missing stuff dealing with group permissions 2013-07-29 17:22:40 +00:00
Mark Crane 93adbba412 Move the class files from includes to the resources directory. 2013-07-06 07:16:58 +00:00