mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-26 04:51:08 -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()
|
function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
$this->load->config('geshi_languages');
|
$this->load->config('geshi_languages');
|
||||||
$this->geshi_languages = $this->config->item('geshi_languages');
|
$this->geshi_languages = $this->config->item('geshi_languages');
|
||||||
|
|
||||||
$this->load->config('config');
|
$this->load->config('config');
|
||||||
$this->favorite_languages = $this->config->item('favorite_languages');
|
$this->favorite_languages = $this->config->item('favorite_languages');
|
||||||
}
|
}
|
||||||
@ -33,18 +31,17 @@ class Languages extends CI_Model
|
|||||||
{
|
{
|
||||||
$data = array();
|
$data = array();
|
||||||
|
|
||||||
if(is_array($this->favorite_languages))
|
if (is_array($this->favorite_languages))
|
||||||
{
|
{
|
||||||
foreach ($this->favorite_languages as $key)
|
foreach ($this->favorite_languages as $key)
|
||||||
{
|
{
|
||||||
$data[$key] = $this->geshi_languages[$key];
|
$data[$key] = $this->geshi_languages[$key];
|
||||||
}
|
}
|
||||||
|
|
||||||
$data["0"] = "-----------------";
|
$data["0"] = "-----------------";
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->geshi_languages as $key => $value)
|
foreach ($this->geshi_languages as $key => $value)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!in_array($key, $a))
|
if (!in_array($key, $a))
|
||||||
{
|
{
|
||||||
$data[$key] = $value;
|
$data[$key] = $value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user