Skip to content

Commit 476e56c

Browse files
author
pedro_morgan
committed
Trying to silence e_NOTICE warnings
1 parent 5fcaec0 commit 476e56c

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

interface/lib/classes/tpl_ini.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ function vlibTemplate () {
8585

8686

8787
/* the following are only used by the vlibTemplateCache class. */
88-
89-
'CACHE_DIRECTORY' => $conf["template"]["cache_dir"],
88+
// TODO: triggers a notice as its not set
89+
'CACHE_DIRECTORY' => $conf['template']['cache_dir'],
9090
// Directory where the cached filesystem
9191
// will be set up (full path, and must be writable)
9292
// '/' or '\' off the end of the directory.

interface/lib/config.inc.php

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,17 @@
2727
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2828
*/
2929

30-
Header("Pragma: no-cache");
31-
Header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
32-
Header("Content-Type: text/html");
30+
Header('Pragma: no-cache');
31+
Header('Cache-Control: no-store, no-cache, max-age=0, must-revalidate');
32+
Header('Content-Type: text/html');
3333

34-
ini_set('register_globals',0);
3534

36-
$conf["app_title"] = "ISPConfig";
37-
$conf["app_version"] = "3.0.0";
38-
$conf["modules_available"] = "admin,mail,sites,monitor,client,dns";
39-
40-
41-
/*
42-
Database Settings
43-
*/
35+
//** Key paramaters
36+
$conf['app_title'] = 'ISPConfig';
37+
$conf['app_version'] = '3.0.0';
38+
$conf['modules_available'] = 'admin,mail,sites,monitor,client,dns';
4439

40+
//** Database Settings
4541
$conf["db_type"] = 'mysql';
4642
$conf["db_host"] = 'localhost';
4743
$conf["db_database"] = 'ispconfig3';

0 commit comments

Comments
 (0)