Changeset 2348 for branches/0.9/bb-admin/admin-functions.php
- Timestamp:
- 08/12/2009 05:03:05 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/bb-admin/admin-functions.php
r2053 r2348 77 77 { 78 78 global $bb_menu; 79 global $bb_registered_plugin_callbacks; 80 if ( empty( $bb_registered_plugin_callbacks ) ) { 81 $bb_registered_plugin_callbacks = array(); 82 } 83 79 84 if ($display_name && $capability && $file_name) { 85 if ( strpos( $file_name, '.php' ) === false ) { 86 $bb_registered_plugin_callbacks[] = $file_name; 87 } 80 88 $bb_menu[] = array($display_name, $capability, $file_name); 81 89 } … … 85 93 { 86 94 global $bb_submenu; 95 global $bb_registered_plugin_callbacks; 96 if ( empty( $bb_registered_plugin_callbacks ) ) { 97 $bb_registered_plugin_callbacks = array(); 98 } 99 87 100 if ($display_name && $capability && $file_name) { 101 if ( strpos( $file_name, '.php' ) === false ) { 102 $bb_registered_plugin_callbacks[] = $file_name; 103 } 88 104 $bb_submenu[$parent][] = array($display_name, $capability, $file_name); 89 105 }
Note: See TracChangeset
for help on using the changeset viewer.