Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' into vortex
Browse files Browse the repository at this point in the history
# Conflicts:
#	files/lib/data/todo/ToDo.class.php
#	files/lib/form/TodoAddForm.class.php
#	files/lib/page/AbstractTodoListPage.class.php
#	install.sql
#	package.xml
#	update.sql
  • Loading branch information
mutec committed Aug 3, 2017
2 parents 43b5759 + d478346 commit 6ccbd59
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ php:
- 7.1
- 5.5
before_install:
- pear install pear/PHP_CodeSniffer
- export PATH="$PATH:$(composer global config bin-dir --absolute)"
- composer global require "squizlabs/php_codesniffer=3.*"
- phpenv rehash
before_script:
- git clone --branch=master --depth=1 --quiet git://github.com/WoltLab/WCF.git WCF
Expand Down
4 changes: 2 additions & 2 deletions files/lib/data/todo/category/TodoCategoryCache.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
use wcf\system\cache\builder\TodoCategoryLabelGroupCacheBuilder;
use wcf\system\category\CategoryHandler;
use wcf\system\database\util\PreparedStatementConditionBuilder;
use wcf\system\label\LabelHandler;
use wcf\system\label\object\TodoLabelObjectHandler;
use wcf\system\label\LabelHandler;
use wcf\system\SingletonFactory;
use wcf\system\WCF;

Expand Down Expand Up @@ -228,7 +228,7 @@ public function getLabelGroupIDs($categoryID = null) {
return $this->cachedLabelGroups[$categoryID];
}

return [];
return array();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion files/lib/form/TodoAddForm.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
use wcf\system\exception\UserInputException;
use wcf\system\html\input\HtmlInputProcessor;
use wcf\system\message\censorship\Censorship;
use wcf\system\label\LabelHandler;
use wcf\system\label\object\TodoLabelObjectHandler;
use wcf\system\label\LabelHandler;
use wcf\system\message\quote\MessageQuoteManager;
use wcf\system\user\notification\object\ToDoUserNotificationObject;
use wcf\system\user\notification\UserNotificationHandler;
Expand Down
1 change: 0 additions & 1 deletion files/lib/form/TodoEditForm.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public function save() {
TodoLabelObjectHandler::getInstance()->setLabels($this->labelIDs, $this->todoID);
$labelIDs = TodoLabelObjectHandler::getInstance()->getAssignedLabels(array($this->todoID), false);


if ($this->todo->canEdit()) {
$todoData = [
'data' => [
Expand Down
4 changes: 2 additions & 2 deletions files/lib/page/AbstractTodoListPage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace wcf\page;
use wcf\data\todo\category\RestrictedTodoCategoryNodeList;
use wcf\data\todo\status\TodoStatusCache;
use wcf\data\todo\ViewableToDoList;
use wcf\data\todo\AccessibleToDoList;
use wcf\data\user\group\UserGroupSearchAction;
use wcf\data\user\UserProfile;
use wcf\system\like\LikeHandler;
Expand Down Expand Up @@ -54,7 +54,7 @@ abstract class AbstractTodoListPage extends SortablePage {
/**
* @inheritDoc
*/
public $objectListClassName = ViewableToDoList::class;
public $objectListClassName = AccessibleToDoList::class;

public $neededModules = ['TODOLIST'];

Expand Down

0 comments on commit 6ccbd59

Please sign in to comment.