Pārlūkot izejas kodu

! Let's actually assign a copyright year for SMF outside the language files that we can target with patches should we need to. About time we did this.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 11 gadi atpakaļ
vecāks
revīzija
b5bb3fb944
3 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. 3 3
      Sources/Subs.php
  2. 1 1
      Themes/default/languages/index.english.php
  3. 1 0
      index.php

+ 3 - 3
Sources/Subs.php

@@ -3220,14 +3220,14 @@ function template_header()
  */
 function theme_copyright()
 {
-	global $forum_copyright, $context, $boardurl, $forum_version, $txt, $modSettings;
+	global $forum_copyright, $software_year, $context, $boardurl, $forum_version, $txt, $modSettings;
 
 	// Don't display copyright for things like SSI.
-	if (!isset($forum_version))
+	if (!isset($forum_version) || !isset($software_year))
 		return;
 
 	// Put in the version...
-	$forum_copyright = sprintf($forum_copyright, $forum_version);
+	$forum_copyright = sprintf($forum_copyright, $forum_version, $software_year);
 
 	echo '
 			<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">' . $forum_copyright . '

+ 1 - 1
Themes/default/languages/index.english.php

@@ -495,7 +495,7 @@ $txt['go_up'] = 'Go Up';
 $txt['go_down'] = 'Go Down';
 
 $forum_copyright = '<a href="' . $scripturl . '?action=credits" title="Simple Machines Forum" class="new_win">%1$s</a> |
- <a href="http://www.simplemachines.org/about/smf/license.php" title="License" target="_blank" class="new_win">SMF &copy; 2012</a>, <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a>';
+ <a href="http://www.simplemachines.org/about/smf/license.php" title="License" target="_blank" class="new_win">SMF &copy; %2$s</a>, <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a>';
 
 $txt['birthdays'] = 'Birthdays:';
 $txt['events'] = 'Events:';

+ 1 - 0
index.php

@@ -21,6 +21,7 @@
  */
 
 $forum_version = 'SMF 2.1 Alpha 1';
+$software_year = '2013';
 
 // Get everything started up...
 define('SMF', 1);