Commit Graph

61 Commits

Author SHA1 Message Date
Nate
0df02b95dd Template: Convert to Smarty syntax. 2020-03-17 20:31:29 -06:00
FusionPBX
884fee7275 Update menu.php 2020-03-02 23:47:17 -07:00
FusionPBX
e211d7ae3a Update menu.php 2020-03-02 22:29:29 -07:00
Nate
1586c48517 Menu: Add explicit temporary permissions in delete() method. 2020-02-17 18:19:40 -07:00
Nate
18b26a9938 Menu Manager: List view and button updates, bulk menu item delete and toggle protected, etc. 2020-02-10 20:46:08 -07:00
FusionPBX
9a41858dd5 Update menu.php 2019-12-18 23:24:22 -07:00
FusionPBX
f55ec9653f Update menu.php 2019-11-23 15:34:48 -07:00
chansizzle
eedc7ac4b7 Update menu.php (#4779) 2019-10-14 19:51:36 -07:00
FusionPBX
81caa972d9 Update menu.php 2019-10-13 15:44:21 -06:00
FusionPBX
80d95fe0c2 Update menu.php 2019-10-12 15:37:22 -06:00
Nate
07cb911e70 Menu Class: Database class integration. 2019-09-03 09:59:37 -06:00
FusionPBX
d9ffd80138 Update menu.php 2019-03-08 11:02:09 -07:00
FusionPBX
a20cb0b75f Update menu.php 2017-11-17 14:44:31 -07:00
FusionPBX
b4f4cd7b79 Update menu.php 2017-11-17 14:28:07 -07:00
FusionPBX
27309fabf2 Update menu.php 2017-11-17 13:06:04 -07:00
FusionPBX
d5e7977317 Update menu.php 2017-07-01 16:05:25 -06:00
FusionPBX
98b834e1b8 Update menu.php 2017-07-01 14:13:51 -06:00
Mafoo
32a6f76ed0 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
4ae8b418d4 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
828646b258 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
5a178625d5 Menu Manager: Add ability to customize main and sub menu icons. 2016-05-02 14:42:06 -06:00
Harry G. Coin
8abe003a71 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
4b55af24f7 Add class_exists 2016-04-14 23:23:14 -06:00
markjcrane
f6920838c7 Add a default group check. 2016-04-03 11:54:09 -06:00
FusionPBX
e241bd383a 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
594a353fab 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
645f493b11 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
fa2b753e62 Add the menu_default method to app_defaults.php. 2016-03-26 22:59:00 -06:00
markjcrane
c0b93e849c Change the method name to menu_default. 2016-03-26 21:22:52 -06:00
markjcrane
d5b3fffda8 Add methoed 'default' to the menu class. 2016-03-26 21:18:02 -06:00
markjcrane
e3175814bd Fix the reference to the prepared statement. 2016-03-26 14:03:44 -06:00
markjcrane
c6f0759a5c 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
ba095f3852 Additional work to improve the install, template and the menu. 2016-03-26 12:22:15 -06:00
markjcrane
0e649f9020 Don't error if the menu is not available for the install.php. 2016-03-26 11:45:57 -06:00
reliberate
14f2705cb3 Menu: Updated code to create menu HTML from array, instead of database directly. 2015-07-30 11:49:51 -06:00
Mark Crane
a3e3ed5a97 Add menu array to the menu class. 2015-06-22 17:56:40 +00:00
Nate Jones
fe8032b1c3 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
ca9e59eca8 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
7a0895de4d 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
9cb5bbec4b Fix the main menu color. 2015-01-09 20:57:40 +00:00
Mark Crane
2497b33447 Add debug information. 2014-12-27 17:49:35 +00:00
Mark Crane
d34fbd1063 Need to add GLOB_BRACE to support the {menu,config} 2014-12-27 17:30:07 +00:00
Mark Crane
4c69bd1cde Change the | to a comma had to review the syntax on the glob command. 2014-12-27 17:28:07 +00:00
Mark Crane
ccd70da5ed Add $y = 0; and a try catch block to the menu. 2014-12-27 17:22:57 +00:00
Mark Crane
4b63b76309 Add a try catch to the menu include loop. 2014-12-27 07:25:11 +00:00
Mark Crane
9369fd8d0d Move the menu array to app_menu.php 2014-12-26 03:27:54 +00:00
Mark Crane
45d2b0fe54 Add primary key uuid to menu item group inserts 2014-09-20 04:01:53 +00:00
Mark Crane
f85f1bca5d Move domain upgrade into the domain class and upgrade_schema into the schema class 2014-07-15 05:46:15 +00:00
Mark Crane
170a0864f5 Limit the transaction for the menu to SQLite. 2014-03-21 06:29:00 +00:00
Mark Crane
affa8ee72c Add the SQL transactions back again to speed up install and menu restore. 2014-03-19 05:19:48 +00:00