diff --git a/.travis.yml b/.travis.yml index 8310e9f07..fa19cb558 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ matrix: - php: 5.4 env: - PHPCS=1 + - env: TESTDB=SQLITE before_script: - pear install pear/PHP_CodeSniffer diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index d9f1ad143..541bd3c0a 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -691,7 +691,7 @@ class LeftAndMain extends Controller implements PermissionProvider { * @return String Nested unordered list with links to each page */ public function getSiteTreeFor($className, $rootID = null, $childrenMethod = null, $numChildrenMethod = null, - $filterFunction = null, $minNodeCount = 30) { + $filterFunction = null, $nodeCountThreshold = 30) { // Filter criteria $params = $this->request->getVar('q'); @@ -719,7 +719,7 @@ class LeftAndMain extends Controller implements PermissionProvider { // Mark the nodes of the tree to return if ($filterFunction) $obj->setMarkingFilterFunction($filterFunction); - $obj->markPartialTree($minNodeCount, $this, $childrenMethod, $numChildrenMethod); + $obj->markPartialTree($nodeCountThreshold, $this, $childrenMethod, $numChildrenMethod); // Ensure current page is exposed if($p = $this->currentPage()) $obj->markToExpose($p); @@ -744,7 +744,7 @@ class LeftAndMain extends Controller implements PermissionProvider { true, $childrenMethod, $numChildrenMethod, - $minNodeCount + $nodeCountThreshold ); // Wrap the root if needs be. diff --git a/core/Core.php b/core/Core.php index e8f63e670..258af2591 100644 --- a/core/Core.php +++ b/core/Core.php @@ -119,6 +119,7 @@ if(!isset($_SERVER['HTTP_HOST'])) { if($_REQUEST) stripslashes_recursively($_REQUEST); if($_GET) stripslashes_recursively($_GET); if($_POST) stripslashes_recursively($_POST); + if($_COOKIE) stripslashes_recursively($_COOKIE); } /** diff --git a/docs/en/reference/dataextension.md b/docs/en/reference/dataextension.md index b60985e54..d16b55b0e 100644 --- a/docs/en/reference/dataextension.md +++ b/docs/en/reference/dataextension.md @@ -9,7 +9,7 @@ implementation. Have a look at `[api:Object->useCustomClass()]`. ## Usage -Your extension will nee to be a subclass of `[api:DataExtension]` or the `[api:Extension]` class. +Your extension will need to be a subclass of `[api:DataExtension]` or the `[api:Extension]` class. :::php ` and `