Ticket #23116: patch-include-global.php.diff

File patch-include-global.php.diff, 585 bytes (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • include/global.php

    old new  
    3030
    3131*/
    3232
     33/* display ALL errors (except those about deprecated functions) */
     34error_reporting(E_ALL & ~E_DEPRECATED);
     35
    3336/* Default database settings*/
    3437$database_type = "mysql";
    3538$database_default = "cacti";
     
    177180        unset($input);
    178181}
    179182
    180 /* display ALL errors */
    181 error_reporting(E_ALL);
    182 
    183183/* include base modules */
    184184include($config["library_path"] . "/adodb/adodb.inc.php");
    185185include($config["library_path"] . "/database.php");