JasonBaier / ci3-fire-starter

NOW THAT CODEIGNITER 4 HAS BEEN RELEASED, THIS PROJECT WILL NOT BE UPDATED ANYMORE. CI3 Fire Starter is a CodeIgniter3 skeleton application that includes jQuery and Twitter Bootstrap. It is intended to be light weight, minimalistic and not get in your way of building great CodeIgniter 3 applications.
MIT License
153 stars 152 forks source link

language menu is empty #21

Closed mosaferkarbala closed 8 years ago

mosaferkarbala commented 8 years ago

hi, i appreciate ur effort on this project, i installed its really good but i have a problem on my local machine with it that as i mentioned in title the language menu is empty in the top nav bar and in the profile menu. i add core language of codeigniter and it didn't change. please tell me if im wrong or ots a bug in the fire-starter. here is two screenshot may be help: http://i63.tinypic.com/mw65hd.jpg http://i65.tinypic.com/1z4z8tc.jpg

--update: by the way now i checked ihe log and it saids: ERROR - 2016-01-06 22:18:46 --> Severity: Notice --> Array to string conversion C:\xampp\application\core\MY_Lang.php 82 ERROR - 2016-01-06 22:18:46 --> Severity: Notice --> Array to string conversion C:\xampp\application\core\MY_Lang.php 102 ERROR - 2016-01-06 22:18:46 --> Severity: Notice --> Array to string conversion C:\xampp\application\core\MY_Lang.php 144

thanks a lot sincerely bye

ghost commented 8 years ago

Replace if(substr($language, -1) == '/') with if(substr($language, -1) == '/' || substr($language, -1) == '\') or if(in_array(substr($language, -1), ['/', '\'])) in core_helper.php line 220 if you're local machine is a windows!

JasonBaier commented 8 years ago

@Everterstraat 's fix has been included in version 3.2.3.