mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
ran php_beautifier
This commit is contained in:
parent
d8b9166ceb
commit
e235c51ee2
@ -16,10 +16,8 @@ class Languages extends CI_Model
|
||||
function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
$this->load->config('geshi_languages');
|
||||
$this->geshi_languages = $this->config->item('geshi_languages');
|
||||
|
||||
$this->load->config('config');
|
||||
$this->favorite_languages = $this->config->item('favorite_languages');
|
||||
}
|
||||
@ -33,18 +31,17 @@ class Languages extends CI_Model
|
||||
{
|
||||
$data = array();
|
||||
|
||||
if(is_array($this->favorite_languages))
|
||||
if (is_array($this->favorite_languages))
|
||||
{
|
||||
foreach ($this->favorite_languages as $key)
|
||||
{
|
||||
$data[$key] = $this->geshi_languages[$key];
|
||||
}
|
||||
|
||||
$data["0"] = "-----------------";
|
||||
}
|
||||
|
||||
foreach ($this->geshi_languages as $key => $value)
|
||||
{
|
||||
|
||||
if (!in_array($key, $a))
|
||||
{
|
||||
$data[$key] = $value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user