MyBB Community Forums

Full Version: Where is this footer template variable: {$copy_year} defined?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using the default template and {$copy_year} is used in the footer template for current year.
Where is it defined?
What is the difference between this and $mybb->settings['xyz']?
You can find the $copy_year in the global.php but that's give's you just the current year.
What do you mean with the difference between this and in the settings?
I mean why some variables are used like this: $mybb->settings['xyz'] while current year can be directly accessed using: $copy_year ( without in $mybb variable) ?
Because its used in a built in function already included in global.php file;
$copy_year = my_date("Y", TIME_NOW);
(2011-06-07, 08:08 AM)jmatts Wrote: [ -> ]I mean why some variables are used like this: $mybb->settings['xyz'] while current year can be directly accessed using: $copy_year ( without in $mybb variable) ?

$copy_year is not a setting. The $copy_year variable is used in the MyBB copyright and shouldn't really be changed.
If it was a setting you'd have to manually change it every year, wouldn't be much point in that.