aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2013-06-05 12:16:35 +0000
committerRomain d'Alverny <rda@mageia.org>2013-06-05 12:16:35 +0000
commit39e06ca25e095660c4f76e6fd05ae12dd15194f1 (patch)
treedbd0ba7652d1c7896d5f10db66835bc071eee04e
parent056c6bc8e38a5d9c9c8f6463ffd61979b9070d1d (diff)
downloadnav-39e06ca25e095660c4f76e6fd05ae12dd15194f1.tar
nav-39e06ca25e095660c4f76e6fd05ae12dd15194f1.tar.gz
nav-39e06ca25e095660c4f76e6fd05ae12dd15194f1.tar.bz2
nav-39e06ca25e095660c4f76e6fd05ae12dd15194f1.tar.xz
nav-39e06ca25e095660c4f76e6fd05ae12dd15194f1.zip
static functions
-rw-r--r--lib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib.php b/lib.php
index 135ee60..164a5bf 100644
--- a/lib.php
+++ b/lib.php
@@ -30,7 +30,7 @@ class NCache
*
* @return NCache
*/
- function build($path, $timeout = 3600)
+ public static function build($path, $timeout = 3600)
{
$path = __DIR__ . '/' . $path;
@@ -135,7 +135,7 @@ class l10n
*
* @return void
*/
- function load($lang)
+ public static function load($lang)
{
global $_t;
$_t = array();
@@ -190,7 +190,7 @@ P;
*
* @return string
*/
- function _t($s) {
+ public static function _t($s) {
if (trim($s) == '')
return '';