Add method chaining support to Calendar & Pagination libs
diff --git a/system/libraries/Pagination.php b/system/libraries/Pagination.php
index c6ffd03..f67cb47 100644
--- a/system/libraries/Pagination.php
+++ b/system/libraries/Pagination.php
@@ -314,7 +314,7 @@
* Initialize Preferences
*
* @param array $params Initialization parameters
- * @return void
+ * @return CI_Pagination
*/
public function initialize($params = array())
{
@@ -342,6 +342,8 @@
}
}
}
+
+ return $this;
}
// --------------------------------------------------------------------