I would like to show interval time for nodes were last modified. I am using the following code:
<?php print "Last Modified" . format_interval($node->changed, $langcode, "short"); ?>
I am using $langcode
as proposed here to display it in Arabic, but it is not working and I am not sure if I am using it the right way because I get this error Notice: Undefined variable: langcode in include()
Whenever I update any content; interval time still set to 0 sec, so what is wrong with the code?