From 08e6b0cca401fdcdafddf652c9d3727428e62772 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Thu, 23 Aug 2007 01:04:53 +0000 Subject: Fixed an example in the Calendar library for Showing Next/Previous Month Links. --- user_guide/changelog.html | 1 + user_guide/libraries/calendar.html | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/user_guide/changelog.html b/user_guide/changelog.html index e96e18ee2..6273afeaf 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -79,6 +79,7 @@ Change Log
  • Fixed a bug in _html_entity_decode_callback() when 'global_xss_filtering' is enabled.
  • Fixed a bug in the cookie helper "set_cookie" function. It was not honoring the config settings.
  • Fixed an example of comma-separated emails in the email library documentation.
  • +
  • Fixed an example in the Calendar library for Showing Next/Previous Month Links.
  • Fixed a typo in the DocBlock comment for unset_userdata() in Session.
  • diff --git a/user_guide/libraries/calendar.html b/user_guide/libraries/calendar.html index 2880887c6..4731d5076 100644 --- a/user_guide/libraries/calendar.html +++ b/user_guide/libraries/calendar.html @@ -171,14 +171,14 @@ regarding preferences below.

    code similar to this example:

    -$this->load->library('calendar');
    -
    -$prefs = array (
    +$prefs = array (
                   'show_next_prev'  => TRUE,
                   'next_prev_url'   => 'http://www.your-site.com/index.php/calendar/show/'
                 );

    -echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4), $prefs);
    +$this->load->library('calendar', $prefs);
    +
    +echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4));

    You'll notice a few things about the above example:

    -- cgit v1.2.3-24-g4f1b