Advertisement
Tamlyn

404 Redirected patch

Dec 3rd, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.51 KB | None | 0 0
  1. Index: wp-content/plugins/404-redirected/includes/admin.php
  2. IDEA additional info:
  3. Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
  4. <+>UTF-8
  5. ===================================================================
  6. --- wp-content/plugins/404-redirected/includes/admin.php    (date 1354538649000)
  7. +++ wp-content/plugins/404-redirected/includes/admin.php    (revision )
  8. @@ -1266,7 +1266,10 @@
  9.         $rows = wbz404_getLogRecords($tableOptions);
  10.         $displayed = 0;
  11.         $y=1;
  12. -       date_default_timezone_set(get_option('timezone_string'));
  13. +       $timezone_string = get_option('timezone_string');
  14. +       if ($timezone_string) {
  15. +           date_default_timezone_set($timezone_string);
  16. +       }
  17.         foreach ($rows as $row) {
  18.             $class = "";
  19.             if ($y == 0) {
  20. @@ -1492,7 +1495,10 @@
  21.     $columns['last_used']['orderby'] = "";
  22.     $columns['last_used']['width'] = "10%";
  23.  
  24. -   date_default_timezone_set(get_option('timezone_string'));
  25. +   $timezone_string = get_option('timezone_string');
  26. +   if ($timezone_string) {
  27. +       date_default_timezone_set($timezone_string);
  28. +   }
  29.  
  30.     echo "<div class=\"tablenav\">";
  31.         wbz404_drawPaginationLinks($sub, $tableOptions);
  32. @@ -1797,8 +1803,10 @@
  33.     $columns['last_used']['orderby'] = "";
  34.     $columns['last_used']['width'] = "20%";
  35.  
  36. -   date_default_timezone_set(get_option('timezone_string'));  
  37. -
  38. +   $timezone_string = get_option('timezone_string');
  39. +   if ($timezone_string) {
  40. +       date_default_timezone_set($timezone_string);
  41. +   }
  42.  
  43.     echo "<div class=\"tablenav\">";
  44.         wbz404_drawPaginationLinks($sub, $tableOptions);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement