Various minor fixes

This commit is contained in:
Frédéric Guillot
2014-08-16 14:12:05 -07:00
parent 925b0ba2e5
commit db3c006be8
5 changed files with 10 additions and 4 deletions

View File

@@ -4,7 +4,6 @@ namespace Auth;
use Core\Tool;
use Core\Registry;
use PicoDb\Database;
/**
* Base auth class

View File

@@ -21,6 +21,14 @@ class WebhookListener implements Listener
*/
private $webhook;
/**
* Url to call
*
* @access private
* @var string
*/
private $url = '';
/**
* Constructor
*

View File

@@ -26,6 +26,7 @@ use PicoDb\Database;
* @property \Model\SubTask $subTask
* @property \Model\Task $task
* @property \Model\User $user
* @property \Model\Webhook $webhook
*/
abstract class Base
{

View File

@@ -431,7 +431,7 @@ class Project extends Base
unset($category['id']);
$category['project_id'] = $project_to;
if (! $categoryModel->create($category)) {
if (! $this->category->create($category)) {
return false;
}
}

View File

@@ -158,8 +158,6 @@ $registry->mailer = function() use ($registry) {
require_once 'vendor/swiftmailer/swift_required.php';
$transport = null;
switch (MAIL_TRANSPORT) {
case 'smtp':
$transport = Swift_SmtpTransport::newInstance(MAIL_SMTP_HOSTNAME, MAIL_SMTP_PORT);