<?php

if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) {
	header("location: index.php");
	exit;
}
/**
 * Gets Category Id from the Category name
 */

function smarty_modifier_categid($category) {
	return TikiLib::lib('categ')->get_category_id($category);
}

Add a new modifier to show CategId instead of Category name. To be used inside pretty trackers, in plugins that needs (e.g. prevail category field in tracker plugin)
[ENH] Add a new modifier to show CategId instead of Category name. To be used inside pretty trackers, in plugins that needs (e.g. prevail category field in tracker plugin)

git-svn-id: 3cd832710dc27357e4e90d6eb54b4b41d31c01cf@60098 b456876b-0849-0410-b77d-98878d47e9d5
