Skip to content

Commit

Permalink
Small Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tiefenb authored Feb 7, 2022
1 parent 339d9d6 commit eb9f954
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ElasticsearchFeeder.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static function getModuleInfo()
return array(
'title' => 'ElasticsearchFeeder',
'class' => 'ElasticsearchFeeder',
'version' => 142,
'version' => 150,
'summary' => 'Schema-flexible module for getting your page into ElasticSearch',
'href' => 'https://github.com/blue-tomato/ElasticsearchFeeder/',
'singular' => true,
Expand Down Expand Up @@ -216,7 +216,9 @@ public function reIndexButtonClick(HookEvent $event)

// prevent server timeouts
// works only if php safe_mode is off
set_time_limit(0);
if(!ini_get('safe_mode')) {
set_time_limit(0);
}

$templateId = false;
if ($this->input->get('template_id')) $templateId = $this->input->get('template_id');
Expand Down Expand Up @@ -336,7 +338,7 @@ public function afterPageUnpublished(HookEvent $event)
}
}

public function dashesToCamelCase(string $string, boolean $capitalizeFirstCharacter = null)
public function dashesToCamelCase(string $string, bool $capitalizeFirstCharacter = null)
{
$str = str_replace(' ', '', ucwords(str_replace('-', ' ', $string)));
if (!$capitalizeFirstCharacter) {
Expand Down

0 comments on commit eb9f954

Please sign in to comment.