Changeset 3308 for trunk/modules

Show
Ignore:
Timestamp:
08/08/2008 07:24:22 PM (4 months ago)
Author:
Shadowhand
Message:

Fixed some trailing calls to Kohana::config(

Location:
trunk/modules/user_guide
Files:
2 modified

Legend:

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

    r3209 r3308  
    2727                if ($this->uri->segment(2) == FALSE) 
    2828                { 
    29                         url::redirect('user_guide/'.current(explode('_', Kohana::config('locale.language'))).'/kohana/about'); 
     29                        url::redirect('user_guide/'.current(explode('_', Kohana::config('locale.language.0'))).'/kohana/about'); 
    3030                } 
    3131        } 
    3232 
    33         public function _remap() 
     33        public function __call($method, $args) 
    3434        { 
    3535                $language = strtolower($this->uri->segment(2)); 
  • trunk/modules/user_guide/views/user_guide/template.php

    r3163 r3308  
    11<?php 
    22 
    3 $lang = substr(Kohana::config('locale.language'), 0, 2); 
     3$lang = substr(Kohana::config('locale.language.0'), 0, 2); 
    44 
    55?>