Description: Fixes 404 for plugins specific javascript files
 The clients were asked to download absolute path name inside
 /usr/share/ocsinventory-reports/ like:
 GET http://hostname/usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_search_soft/js/autocomplete-3-2.js [HTTP/1.1 404 Not Found]
 GET http://hostname/usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_search_soft/js/print.js [HTTP/1.1 404 Not Found]
 GET http://hostname/usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_users/js/profile-create-form.js [HTTP/1.1 404 Not Found]
 GET http://hostname/usr/share/ocsinventory-reports/ocsreports/plugins/main_sections/ms_users/js/profile-edit-form.js [HTTP/1.1 404 Not Found]
 .
 This patch fixes the URI.

Author: Gilles Dubois <gillesdubois18@gmail.com>
Origin: upstream, https://github.com/OCSInventory-NG/OCSInventory-ocsreports/commit/ec6341c8c7b7c6ec870ba6034c790c3cf9a06642
Bug: https://github.com/OCSInventory-NG/OCSInventory-ocsreports/issues/64
Forwarded: not-needed
Reviewed-By: Jean-Michel Vourgère <nirgal@debian.org>
Last-Update: 2016-05-08

Index: ocsinventory-server/ocsreports/var.php
===================================================================
--- ocsinventory-server.orig/ocsreports/var.php
+++ ocsinventory-server/ocsreports/var.php
@@ -37,7 +37,7 @@ define('PLUGINS_DIR',__DIR__ . '/plugins
 define('PLUGINS_GUI_DIR','/tmp/');	
 define('HEADER_HTML',__DIR__ . '/require/html_header.php');						// Define html_header file				
 define('FOOTER_HTML',__DIR__ . '/require/footer.php');								// Define footer file		
-define('MAIN_SECTIONS_DIR',PLUGINS_DIR."main_sections/");				//
+define('MAIN_SECTIONS_DIR',"plugins/main_sections/");				//
 define('DEV_OPTION',false);												// Define DEV Options DO NOT USE
 define('PC4PAGE',20);													// Define result by page MUST in (5,10,15,20,50,100,200,1000000);
 define('CSRF',1000);														// max number of csrf session 
