1
0
moha/config/aliases.php

24 lines
490 B
PHP

<?php
function aliases($fn, $property)
{
global $aliases;
logger(DEBUG, "Function aliases " . $fn . "/" . $property, __FILE__ . ":" . __LINE__);
if (array_key_exists($fn . "/" . $property, $aliases))
{
logger(DEBUG, "exists " . $fn . "/" . $property, __FILE__ . ":" . __LINE__);
return "/" . $aliases[$fn . "/" . $property];
}else
{
return "/" . _($property);
}
}
$aliases = array(
"rdc/wc-sdb/eclairage/state_l1" => "sdb",
"rdc/wc-sdb/eclairage/state_l2" => "wc"
)
?>