Format code - refs #6715

1.9.x
Francis Gonzales 12 years ago
parent 2c23cf4b44
commit c0ba6cd567
  1. 8
      main/inc/lib/plugin.lib.php
  2. 5
      plugin/ticket/src/ticket.class.php

@ -180,15 +180,17 @@ class AppPlugin
} else { } else {
$urlId = intval($urlId); $urlId = intval($urlId);
} }
api_delete_settings_params( // First call the custom uninstall to allow full access to global settings
array('category = ? AND access_url = ? AND subkey = ? ' => array('Plugins', $urlId, $pluginName))
);
$pluginPath = api_get_path(SYS_PLUGIN_PATH).$pluginName.'/uninstall.php'; $pluginPath = api_get_path(SYS_PLUGIN_PATH).$pluginName.'/uninstall.php';
if (is_file($pluginPath) && is_readable($pluginPath)) { if (is_file($pluginPath) && is_readable($pluginPath)) {
// Execute the uninstall procedure. // Execute the uninstall procedure.
require $pluginPath; require $pluginPath;
} }
// Second remove all remaining global settings
api_delete_settings_params(
array('category = ? AND access_url = ? AND subkey = ? ' => array('Plugins', $urlId, $pluginName))
);
} }
/** /**

@ -34,8 +34,9 @@ class TicketManager
TABLE_TICKET_PROJECT TABLE_TICKET_PROJECT
); );
$sql = "SELECT category.*, project.other_area , project.email $sql = "SELECT category.*, project.other_area , project.email
FROM " . $table_support_category . " category," . $table_support_project . " project FROM $table_support_category category, $table_support_project project
WHERE project.project_id = category.project_id ORDER BY category.total_tickets DESC;"; WHERE project.project_id = category.project_id
ORDER BY category.total_tickets DESC;";
$result = Database::query($sql); $result = Database::query($sql);
$types = array(); $types = array();
while ($row = Database::fetch_assoc($result)) { while ($row = Database::fetch_assoc($result)) {

Loading…
Cancel
Save