31 lines
387 B
PHP
31 lines
387 B
PHP
<?php
|
|
|
|
/*
|
|
* Nibbleblog -
|
|
* http://www.nibbleblog.com
|
|
* Author Diego Najar
|
|
|
|
* All Nibbleblog code is released under the GNU General Public License.
|
|
* See COPYRIGHT.txt and LICENSE.txt.
|
|
*/
|
|
|
|
class Category {
|
|
|
|
public static function id()
|
|
{
|
|
global $category;
|
|
|
|
return $category['id'];
|
|
}
|
|
|
|
public static function name()
|
|
{
|
|
global $category;
|
|
|
|
return $category['name'];
|
|
}
|
|
|
|
}
|
|
|
|
?>
|