Browse Source

Don't hard code ID of warning wiki article

spaghetti 8 years ago
parent
commit
8f35bf91ff
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      classes/users.class.php
  2. 1
    1
      sections/reportsv2/takeresolve.php
  3. 1
    1
      sections/user/takemoderate.php

+ 1
- 1
classes/users.class.php View File

@@ -418,7 +418,7 @@ class Users {
418 418
       $Str .= Badges::display_badges(Badges::get_displayed_badges($UserID), true);
419 419
     }
420 420
 
421
-    $Str .= ($IsWarned && $UserInfo['Warned']) ? '<a href="wiki.php?action=article&amp;id=218"'
421
+    $Str .= ($IsWarned && $UserInfo['Warned']) ? '<a href="wiki.php?action=article&amp;name=warnings"'
422 422
           . '><img src="'.STATIC_SERVER.'common/symbols/warned.png" alt="Warned" title="Warned'
423 423
           . (G::$LoggedUser['ID'] === $UserID ? ' - Expires ' . date('Y-m-d H:i', strtotime($UserInfo['Warned'])) : '')
424 424
           . '" class="tooltip" /></a>' : '';

+ 1
- 1
sections/reportsv2/takeresolve.php View File

@@ -335,7 +335,7 @@ if ($DB->affected_rows() > 0 || !$Report) {
335 335
     }
336 336
 
337 337
     if ($Warning > 0) {
338
-      $PM .= "This has resulted in a [url=".site_url()."wiki.php?action=article&amp;id=218]$Warning week warning.[/url]\n\n";
338
+      $PM .= "This has resulted in a [url=".site_url()."wiki.php?action=article&amp;name=warnings]$Warning week warning.[/url]\n\n";
339 339
     }
340 340
 
341 341
     if ($Upload) {

+ 1
- 1
sections/user/takemoderate.php View File

@@ -488,7 +488,7 @@ if (check_perms('users_edit_badges')) {
488 488
 
489 489
 if ($Warned == 1 && !$Cur['Warned'] && check_perms('users_warn')) {
490 490
   $Weeks = 'week' . ($WarnLength === 1 ? '' : 's');
491
-  Misc::send_pm($UserID, 0, 'You have received a warning', "You have been [url=".site_url()."wiki.php?action=article&amp;id=218]warned for $WarnLength {$Weeks}[/url] by [user]".$LoggedUser['Username']."[/user]. The reason given was:
491
+  Misc::send_pm($UserID, 0, 'You have received a warning', "You have been [url=".site_url()."wiki.php?action=article&amp;name=warnings]warned for $WarnLength {$Weeks}[/url] by [user]".$LoggedUser['Username']."[/user]. The reason given was:
492 492
 [quote]{$WarnReason}[/quote]");
493 493
   $UpdateSet[] = "Warned = '".sqltime()."' + INTERVAL $WarnLength WEEK";
494 494
   $Msg = "warned for $WarnLength $Weeks";

Loading…
Cancel
Save