Changeset 485

Show
Ignore:
Timestamp:
09/03/2007 07:12:20 PM (15 months ago)
Author:
Shadowhand
Message:

Fixing a typo in the User Guide

Location:
trunk/modules/user_guide
Files:
1 added
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/user_guide/controllers/user_guide.php

    r484 r485  
    3434                } 
    3535 
    36                 // For Kohana's custom tags to be handled properly 
    37                 Event::add('system.pre_output', array($this, '_tags')); 
    38  
    3936                // For i18n 
    4037                $locale = Config::item('core.locale', TRUE); 
     
    4441                $content  = rtrim('user_guide/'.$locale.'content/'.$category.'/'.$section, '/'); 
    4542 
    46                 // Load markdown 
    47                 require Kohana::find_file('vendor', 'Markdown'); 
    48  
    4943                $template          = $this->load->view('user_guide/'.$locale.'template'); 
    5044                $template->menu    = $this->load->view('user_guide/'.$locale.'menu', array('active_category' => $category, 'active_section' => $section)); 
    51                 $template->content = $this->load->view($content)->render(FALSE, 'Markdown'); 
     45                $template->content = $this->load->view($content)->render(FALSE, array($this, '_tags')); 
    5246 
    5347                // Display output 
     
    5549        } 
    5650 
    57         public function _tags() 
     51        public function _tags($output) 
    5852        { 
    59                 Kohana::$output = preg_replace_callback('!<(benchmark|config|definition|event|file)>.+?</[^>]+>!', array($this, '_tag_update'), Kohana::$output); 
     53                // Load markdown 
     54                require Kohana::find_file('vendor', 'Markdown'); 
     55 
     56                $output = Markdown($output); 
     57 
     58                $output = str_replace(array 
     59                ( 
     60                        '<pre><code>', '</code></pre>', 
     61                        '<code>', '</code>' 
     62                ), array 
     63                ( 
     64                        '<pre class="prettyprint">', '</pre>', 
     65                        '<code class="prettyprint">', '</code>' 
     66                ), 
     67                $output); 
     68 
     69                $output = preg_replace_callback('!<(benchmark|config|definition|event|file)>.+?</[^>]+>!', array($this, '_tag_update'), $output); 
     70 
     71                return $output; 
    6072        } 
    6173 
  • trunk/modules/user_guide/views/user_guide/en/content/general/configuration.php

    r483 r485  
    1919 
    2020permitted_uri_chars 
    21 : List of characters that are allowed in URI strings. The default settings should work for almost every application. **If you can this option, the security of Kohana may diminish.** 
     21: List of characters that are allowed in URI strings. The default settings should work for almost every application. **If you change this option, the security of Kohana may diminish.** 
    2222 
    2323locale 
  • trunk/modules/user_guide/views/user_guide/js/effects.js

    r484 r485  
    11// $Id$ 
    2 // Behavior attachment 
    32$(document).ready(function(){ 
    43        // Menu opacity hover effect, much fancy pants!