Skip to content
Snippets Groups Projects
Commit 9023a9f7 authored by TLHenriksen's avatar TLHenriksen Committed by John Voskuilen
Browse files

Issue #3056492 by TLHenriksen: Remove PHP 5.3 incompatibity

parent 356844db
No related branches found
No related tags found
No related merge requests found
......@@ -532,7 +532,7 @@ class WorkflowState extends Entity {
* Mimics Entity API functions.
*/
protected function defaultLabel() {
return isset($this->state) ? t('@state', ['@state' => $this->state]) : '';
return isset($this->state) ? t('@state', array('@state' => $this->state)) : '';
}
public function getName() {
......
......@@ -318,7 +318,7 @@ class WorkflowTransitionForm { // extends FormBase {
// '#name' => $workflow_label,
// '#parents' => array('workflow'),
'#default_value' => $default_value,
'#description' => t('@help', ['@help' => $help_text]),
'#description' => t('@help', array('@help' => $help_text)),
);
}
......
......@@ -31,7 +31,7 @@ function workflow_notify_settings_form($form, &$form_state, Workflow $workflow)
$states = $workflow->getStates();
$form['#states'] = $states;
if (!$states) {
$form['#columns'] = [];
$form['#columns'] = array();
$form['error'] = array(
'#type' => 'markup',
'#value' => t('There are no states defined for this workflow.'),
......
......@@ -11,7 +11,7 @@
class workflow_views_handler_field_state extends views_handler_field {
function render($values) {
return t('@alias', ['@alias' => $values->{$this->field_alias}]);
return t('@alias', array('@alias' => $values->{$this->field_alias}));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment