Permalink
Browse files

Fixed some minor errors

  • Loading branch information...
1 parent 769549c commit 023f95dbb58bbd7cee762775602e5e01e4984032 @Shaneprrlt committed Dec 17, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 LICENSE
  2. +1 −0 app/Controllers/Welcome.php
  3. +2 −3 atomic/Utilities/ShutdownHandler.php
View
2 LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2011-2011 Shane Perreault
+Copyright (c) 2011-2012 Shane Perreault
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
View
1 app/Controllers/Welcome.php
@@ -9,6 +9,7 @@
use Atomic\Controllers\Controller;
use Atomic\Views\Views;
+use Atomic\Utilities\FlashData;
use App\Models\Post;
class Welcome extends Controller {
View
5 atomic/Utilities/ShutdownHandler.php
@@ -33,8 +33,7 @@ public static function shutdownAtomic() {
}
// Close any open file pointers in the log file
- $log_path = Config::getRequiredVal("app", "log_file_path") ?:
- Config::getBasePath() . "/app/logs/errors.log";
+ $log_path = Config::getBasePath() . "/app/logs/errors.log";
if(is_file($log_path) && file_exists($log_path)) {
$fh = fopen($log_path);
flock($fh, LOCK_UN);
@@ -49,7 +48,7 @@ public static function shutdownAtomic() {
public static function registerShutdown() {
static::$_registered
= register_shutdown_function(function() {
- static::shutdownAtomic();
+ ShutdownHandler::shutdownAtomic();
});
}
}

0 comments on commit 023f95d

Please sign in to comment.