Move 'Plain Text' to top in language list.

This commit is contained in:
Florian Bruhin 2014-09-30 15:31:29 +02:00
parent 2ba7b054b9
commit 3f6f708dbb
2 changed files with 7 additions and 4 deletions

View File

@ -9,6 +9,7 @@ if (!defined('BASEPATH')) exit('No direct script access allowed');
//geshi languages
$config['geshi_languages'] = array(
'text' => 'Plain Text',
'html5' => 'HTML5',
'css' => 'CSS',
'javascript' => 'JavaScript',
@ -25,7 +26,7 @@ $config['geshi_languages'] = array(
'latex' => 'LaTeX',
'sql' => 'SQL',
'xml' => 'XML',
'text' => 'Plain Text',
'' => '', // separator
'4cs' => '4CS',
'6502acme' => 'MOS 6502',
'6502kickass' => 'MOS 6502 Kick Assembler',

View File

@ -30,12 +30,14 @@ class Languages extends CI_Model
$data = array();
foreach ($this->geshi_languages as $key => $value)
{
$data[$key] = $value;
if ($key == 'text')
if ($key == '')
{
$data["0"] = "-----------------";
}
else
{
$data[$key] = $value;
}
}
return $data;
}