| @@ -251,9 +251,9 @@ | ||
| 251 | 251 | if ($paged > 0) |
| 252 | 252 | $args["paged" ] = $paged; |
| 253 | 253 | |
| 254 | 254 | |
| 255 | - $button = MB()->getClass('button'); | |
| 255 | + $button = new MaxButton(); | |
| 256 | 256 | $buttons = $admin->getButtons($args); |
| 257 | 257 | |
| 258 | 258 | echo "<div id='maxbuttons'><div class='preview-buttons'>"; |
| 259 | 259 | |
| @@ -359,9 +359,9 @@ | ||
| 359 | 359 | if (! is_dir($dir)) |
| 360 | 360 | return false; |
| 361 | 361 | |
| 362 | 362 | $file = fopen( trailingslashit($dir) . "/maxbuttons.log", "a+"); |
| 363 | - $now = new \DateTime(); | |
| 363 | + $now = new DateTime() ; | |
| 364 | 364 | $now_format = $now->format("d/M/Y H:i:s"); |
| 365 | 365 | |
| 366 | 366 | $write_string = "[" . $now_format . "] $action - $message ( $caller )"; |
| 367 | 367 | fwrite($file, $write_string); |