lib/Skeleton/I18n/Language.php
public static function get_by_name_short($name) {
		$db = Database::Get();
		$id = $db->get_one('SELECT id FROM language WHERE name_short=?', [$name]);

		if ($id === null) {
			throw new \Exception('No such language');
		}

		$language = self::get_by_id($id);
		return $language;
	}
public static function get_by_name_short($name) {
		$db = Database::Get();
		$id = $db->get_one('SELECT id FROM language WHERE name_short=?', [$name]);

		if ($id === null) {
			throw new \Exception('No such language');
		}

		$language = self::get_by_id($id);
		return $language;
	}
public static function get_by_name_short ( $ name ) { $ db = Database :: Get ( ) ; $ id = $ db -> get_one ( 'SELECT id FROM language WHERE name_short=?' , [ $ name ] ) ; if ( $ id === null ) { throw new \ Exception ( 'No such language' ) ; } $ language = self :: get_by_id ( $ id ) ; return $ language ; }
Get by name_short

@access public
@return Language
@param string $name_short
Get by name_short