From 185315c7168667641b8a98c7258c7aa3ba882f13 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Wed, 24 Jun 2015 20:57:20 -0400 Subject: [PATCH] Fix a few minor issues with logging in for simple updating --- .gitignore | 1 + app/base/BaseController.php | 6 +- app/controllers/AnimeController.php | 2 +- public/js/cache/edit | 170 ------------------------- public/js/cache/table | 189 ---------------------------- 5 files changed, 5 insertions(+), 363 deletions(-) delete mode 100644 public/js/cache/edit delete mode 100644 public/js/cache/table diff --git a/.gitignore b/.gitignore index 6c3fe56e..3a08e110 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ vendor app/cache/* public/images/* +public/js/cache/* composer.lock *.sqlite *.db diff --git a/app/base/BaseController.php b/app/base/BaseController.php index 22418802..e86b990a 100644 --- a/app/base/BaseController.php +++ b/app/base/BaseController.php @@ -216,18 +216,18 @@ class BaseController { private function output() { // send status - header($this->response->status->get(), true, $this->response->status->getCode()); + @header($this->response->status->get(), true, $this->response->status->getCode()); // headers foreach($this->response->headers->get() as $label => $value) { - header("{$label}: {$value}"); + @header("{$label}: {$value}"); } // cookies foreach($this->response->cookies->get() as $name => $cookie) { - setcookie($name, $cookie['value'], $cookie['expire'], $cookie['path'], $cookie['domain'], $cookie['secure'], $cookie['httponly']); + @setcookie($name, $cookie['value'], $cookie['expire'], $cookie['path'], $cookie['domain'], $cookie['secure'], $cookie['httponly']); } // send the actual response diff --git a/app/controllers/AnimeController.php b/app/controllers/AnimeController.php index bf28264e..a80aee69 100644 --- a/app/controllers/AnimeController.php +++ b/app/controllers/AnimeController.php @@ -12,7 +12,7 @@ class AnimeController extends BaseController { * The anime list model * @var object $model */ - private $model; + protected $model; /** * The anime collection model diff --git a/public/js/cache/edit b/public/js/cache/edit deleted file mode 100644 index adabb285..00000000 --- a/public/js/cache/edit +++ /dev/null @@ -1,170 +0,0 @@ -!function(n,L){"object"==typeof module&&"object"==typeof module.exports?module.exports=n.document?L(n,!0):function(n){if(!n.document)throw Error("jQuery requires a window with a document");return L(n)}:L(n)}("undefined"!=typeof window?window:this,function(n,L){function z(a){var b="length"in a&&a.length,c=d.type(a);return"function"===c||d.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&0c;c++)r.set(a[c],"globalEval",!b||r.get(b[c],"globalEval"))}function Za(a,b){var c,e,f,g,h,k;if(1===b.nodeType){if(r.hasData(a)&&(c=r.access(a),e=r.set(b,c),k=c.events))for(f in delete e.handle, -e.events={},k)for(c=0,e=k[f].length;e>c;c++)d.event.add(b,f,k[f][c]);C.hasData(a)&&(g=C.access(a),h=d.extend({},g),C.set(b,h))}}function A(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&d.nodeName(a,b)?d.merge([a],c):c}function $a(a,b){var c,e=d(b.createElement(a)).appendTo(b.body),f=n.getDefaultComputedStyle&&(c=n.getDefaultComputedStyle(e[0]))?c.display:d.css(e[0],"display");return e.detach(),f}function Ha(a){var b= -u,c=ab[a];return c||(c=$a(a,b),"none"!==c&&c||(sa=(sa||d("