From 6f16034ac8783d8d3eb6afc84bcff16d5253cdf8 Mon Sep 17 00:00:00 2001 From: Jeremy Thomerson Date: Tue, 18 Jun 2013 18:28:46 +0000 Subject: [PATCH] MINOR: fix a couple minor typos --- cli-script.php | 2 +- model/MySQLDatabase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli-script.php b/cli-script.php index 5cc2df555..8f3f37727 100755 --- a/cli-script.php +++ b/cli-script.php @@ -29,7 +29,7 @@ chdir(dirname($_SERVER['SCRIPT_FILENAME'])); * For example, * sake my/url somearg otherarg key=val --otherkey=val third=val&fourth=val * - * Will result int he following get data: + * Will result in the following get data: * args => array('somearg', 'otherarg'), * key => val * otherkey => val diff --git a/model/MySQLDatabase.php b/model/MySQLDatabase.php index 4313abd41..7ec6d5bb7 100644 --- a/model/MySQLDatabase.php +++ b/model/MySQLDatabase.php @@ -931,7 +931,7 @@ class MySQLDatabase extends SS_Database { $list = new PaginatedList(new ArrayList($objects)); $list->setPageStart($start); - $list->setPageLEngth($pageLength); + $list->setPageLength($pageLength); $list->setTotalItems($totalCount); // The list has already been limited by the query above