Skip to content

Commit 0191ab5

Browse files
author
pedro_morgan
committed
* Silenced statis function in E_STRCIT
* made php5
1 parent 9026a45 commit 0191ab5

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

interface/lib/classes/tpl_ini.inc.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
<?php
2+
/**
3+
* vlibIni is a class used to store configuration parameters
4+
* for the vLIB library.
5+
*
6+
* @since 21/07/2002
7+
* @author Kelvin Jones <kelvin@kelvinjones.co.uk>
8+
* @copyright 2002 Active Fish Group
9+
* @package vLIB
10+
* @access private
11+
*/
12+
213
/* vim: set expandtab tabstop=4 shiftwidth=4: */
314
// +----------------------------------------------------------------------+
415
// | PHP version 4.0 |
@@ -30,24 +41,16 @@
3041
if (!defined('vlibIniClassLoaded')) {
3142
define('vlibIniClassLoaded', 1);
3243

33-
/**
34-
* vlibIni is a class used to store configuration parameters
35-
* for the vLIB library.
36-
*
37-
* @since 21/07/2002
38-
* @author Kelvin Jones <kelvin@kelvinjones.co.uk>
39-
* @package vLIB
40-
* @access private
41-
*/
4244

43-
class vlibIni {
45+
46+
class vlibIni{
4447

4548
/** config vars for vlibTemplate */
46-
function vlibTemplate () {
49+
public static function vlibTemplate () {
4750

4851
global $conf;
49-
50-
$tpl_dir = $conf["rootpath"]."/web/themes/".$_SESSION["s"]["theme"]."/templates";
52+
53+
$tpl_dir = $conf['rootpath'].'/web/themes/'.$_SESSION['s']['theme'].'/templates';
5154

5255
return array(
5356

@@ -102,15 +105,12 @@ function vlibTemplate () {
102105

103106

104107
/** config vars for vlibDate */
105-
function vlibDate () {
106-
107-
return array(
108-
'DEFAULT_LANG' => 'de' // default language for the date displays
109-
);
110-
111-
}// << end function vlibDate
108+
public function vlibDate()
109+
{
110+
return array( 'DEFAULT_LANG' => 'de' ); //* default language for the date displays
111+
}
112112

113113

114114
}// << end class vlibIni
115-
}
115+
} // << if Defined
116116
?>

0 commit comments

Comments
 (0)