diff options
author | Romain d'Alverny <rda@mageia.org> | 2013-06-05 12:15:00 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2013-06-05 12:15:00 +0000 |
commit | c3fd3318eb10b96e06fb3e67c966e1341dcaf790 (patch) | |
tree | 8a587b032be9caef9eeade7c501b6138a16b5960 /_nav/lib.php | |
parent | 61877c022ef13a678d0d98f28b5d459a0c6610f3 (diff) | |
download | www-c3fd3318eb10b96e06fb3e67c966e1341dcaf790.tar www-c3fd3318eb10b96e06fb3e67c966e1341dcaf790.tar.gz www-c3fd3318eb10b96e06fb3e67c966e1341dcaf790.tar.bz2 www-c3fd3318eb10b96e06fb3e67c966e1341dcaf790.tar.xz www-c3fd3318eb10b96e06fb3e67c966e1341dcaf790.zip |
sync code with working, master code from nav.mageia.org
Diffstat (limited to '_nav/lib.php')
-rw-r--r-- | _nav/lib.php | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/_nav/lib.php b/_nav/lib.php index 7cf917de6..164a5bf64 100644 --- a/_nav/lib.php +++ b/_nav/lib.php @@ -1,4 +1,21 @@ <?php +/** + * mageia.org global nav bar utilities. + * + * PHP version 5.4 + * + * @category Mageia + * @package Mageia\Web\nav + * @author rda <rda@mageia.org> + * @link http://nav.mageia.org/ + * + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU GPL v2+ + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License aspublished by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. +*/ // definition class NCache @@ -13,7 +30,7 @@ class NCache * * @return NCache */ - function build($path, $timeout = 3600) + public static function build($path, $timeout = 3600) { $path = __DIR__ . '/' . $path; @@ -118,7 +135,7 @@ class l10n * * @return void */ - function load($lang) + public static function load($lang) { global $_t; $_t = array(); @@ -173,7 +190,7 @@ P; * * @return string */ - function _t($s) { + public static function _t($s) { if (trim($s) == '') return ''; |