Skip to content

Instantly share code, notes, and snippets.

View objectivehtml's full-sized avatar

Justin Kimbrell objectivehtml

  • Woodland Park, CO
View GitHub Profile

EE 2.6.0 Bugs

  1. Line 278 of EE_Config.php uses reduce_double_slashes(). On EE upgrades that don't have the stringer helper auto-loaded, this will cause errors. You need to load the helper library to ensure that function exists.

  2. If an add-on uses $this->EE->load->library('my_library') within the EE update method it gives a "my_library cannot be loaded" error. Even $this->EE->load->add_package_path(PATH_THIRD.'your_module'); failed to load the correct library.

  3. If you update an existing site and don't replace the current config with the new values (routes.php for example) the routing breaks and fails to deliver the CP.

{exp:channel_search:form id="Your Search ID" class="search clearfix"}
<div class="advanced">
<label for="search" class="search-label"><i class="icon-search"></i></label>
<input type="text" name="q" value="{form:q}" class="search-input" id="search" />
<div class="search-filter">
<div class="search-filter-opt">
<label for="order_by">Order By</label>
var markerDistance = ((Math.acos(Math.sin(lat * Math.PI / 180) * Math.sin(row.lat * Math.PI / 180) + Math.cos(lat * Math.PI / 180) * Math.cos(row.lat * Math.PI / 180) * Math.cos((lng - row.lng) * Math.PI / 180)) * 180 / Math.PI) * 60 * 1.1515) * 1;
{"markers":{"total":7,"results":[{"address_components":[{"long_name":"Clark","short_name":"Clark","types":["administrative_area_level_3","political"]},{"long_name":"Clark","short_name":"Clark","types":["administrative_area_level_2","political"]},{"long_name":"Nevada","short_name":"NV","types":["administrative_area_level_1","political"]},{"long_name":"United States","short_name":"US","types":["country","political"]}],"formatted_address":"Clark, NV, USA","geometry":{"bounds":{"Z":{"b":36.780729,"d":36.8013117},"aa":{"b":-115.80993949999998,"d":-115.80981539999999}},"location":{"Qa":36.7910203,"Ra":-115.80987170000003,"lat":36.753189473757075,"lng":-115.83023071289063},"location_type":"APPROXIMATE","viewport":{"Z":{"b":36.780729,"d":36.8013117},"aa":{"b":-115.81122643029153,"d":-115.8085284697085}}},"types":["route"]},{"address_components":[{"long_name":"North America","short_name":"North America","types":["natural_feature"]}],"formatted_address":"North America","geometry":{"bounds":{"Z":{"b":5.5613,"d":85.41179
public function post_parse($parsed_hook)
{
if($this->hook['service'] != 'ExpressionEngine')
{
$parsed_hook['message'] = preg_replace('/'.LD.'\/?unwrap'.RD.'/u', '', $parsed_hook['message']);
}
return $parsed_hook;
}
$('form').attr('novalidate', 'novalidate').submit(function() {
var $t = $(this);
var fields = $t.find('input, textarea, select');
var $submit = $t.find('[type="submit"]');
// var isValid = fields.isValid(valOptions);
$t.find('.notify').hide();
$submit.addClass('disabled');
// if(isValid) {
$(document).ready(function() {
$('.tabs').tabs({
show: function(event, ui) {
if(ui.panel.id == 'map') {
var instance = Gmap.instances[0];
google.maps.event.trigger(instance.map, 'resize');
instance.map.setCenter(instance.center);
}
{exp:authenticate:forgot_password return="/return/some/template" }
{if total_global_errors > 0}
Authentication Errors
{global_errors}
{error}
{/global_errors}
{/if}
/**
* csv parser
*
* reads csv data and transforms it into php-data
*
* @access protected
* @return boolean
*/
protected function parse()
{
$color_index = array(
'map1' => array(
array(
'min' => 0,
'max' => 2,
'strokeWeight' => '',
'strokeColor' => '',
'strokeOpacity' => '',
'fillColor' => '',