Commit 0d4a2c18 authored by Benoit Mortier's avatar Benoit Mortier
Browse files

Using & in img src

parent 9398a0af
......@@ -17,7 +17,7 @@
<tr>
<td>
<label for="NAME">
<img src="geticon.php?context=actions&icon=system-search&size=16"/>&nbsp;{t}Name{/t}
<img src="geticon.php?context=actions&amp;icon=system-search&amp;size=16"/>&nbsp;{t}Name{/t}
</label>
</td>
<td>
......
<div style="padding:5px;">
<div style="font-size:18px;">
<img alt="" src="geticon.php?context=status&icon=dialog-warning&size=32" class="center"/>&nbsp;{t}Warning{/t}
<img alt="" src="geticon.php?context=status&amp;icon=dialog-warning&amp;size=32" class="center"/>&nbsp;{t}Warning: you are about to delete the following objects{/t}
</div>
<p>
<ul>
......
......@@ -1451,7 +1451,7 @@ class FileTextAreaAttribute extends FileAttribute
'title' => _('Download'),
'alt' => _('Download'),
'class' => 'center',
'src' => 'geticon.php?context=actions&icon=document-save&size=16',
'src' => 'geticon.php?context=actions&amp;icon=document-save&amp;size=16',
)
);
return $this->renderAcl($display);
......@@ -2327,7 +2327,7 @@ class OrderedArrayAttribute extends SetAttribute
$img .= $this->renderInputField(
'image', $id.'_up_'.$key,
array(
'src' => 'geticon.php?context=actions&icon=view-sort-descending&size=16',
'src' => 'geticon.php?context=actions&amp;icon=view-sort-descending&amp;size=16',
'title' => _('Sort up'),
'alt' => _('Sort up'),
'class' => 'center'
......@@ -2340,7 +2340,7 @@ class OrderedArrayAttribute extends SetAttribute
$img .= $this->renderInputField(
'image', $id.'_down_'.$key,
array(
'src' => 'geticon.php?context=actions&icon=view-sort-ascending&size=16',
'src' => 'geticon.php?context=actions&amp;icon=view-sort-ascending&amp;size=16',
'title' => _('Sort down'),
'alt' => _('Sort down'),
'class' => 'center'
......@@ -2355,7 +2355,7 @@ class OrderedArrayAttribute extends SetAttribute
$img .= $this->renderInputField(
'image', $id.'_edit_'.$key,
array(
'src' => 'geticon.php?context=actions&icon=document-edit&size=16',
'src' => 'geticon.php?context=actions&amp;icon=document-edit&amp;size=16',
'title' => _('Edit'),
'alt' => _('Edit'),
'class' => 'center'
......@@ -2365,7 +2365,7 @@ class OrderedArrayAttribute extends SetAttribute
$img .= $this->renderInputField(
'image', $id.'_del_'.$key,
array(
'src' => 'geticon.php?context=actions&icon=edit-delete&size=16',
'src' => 'geticon.php?context=actions&amp;icon=edit-delete&amp;size=16',
'title' => _('Delete'),
'alt' => _('Delete'),
'class' => 'center'
......
......@@ -572,7 +572,7 @@ class UserAttribute extends DialogButtonAttribute
function renderFormInput ()
{
$id = $this->getHtmlId();
$display = '<img src="geticon.php?context=types&icon=user&size=16" alt="user icon" class="center"/>';
$display = '<img src="geticon.php?context=types&amp;icon=user&amp;size=16" alt="user icon" class="center"/>';
if ($this->getValue() == '') {
$display .= '<b>'._('None').'</b>';
} elseif ($this->buttonText === NULL) {
......@@ -584,7 +584,7 @@ class UserAttribute extends DialogButtonAttribute
'image', $id,
array(
'class' => 'center',
'src' => 'geticon.php?context=actions&icon=document-edit&size=16',
'src' => 'geticon.php?context=actions&amp;icon=document-edit&amp;size=16',
'title' => _('Edit'),
'alt' => _('Edit')
)
......@@ -594,7 +594,7 @@ class UserAttribute extends DialogButtonAttribute
'image', $id.'_remove',
array(
'class' => 'center',
'src' => 'geticon.php?context=actions&icon=edit-delete&size=16',
'src' => 'geticon.php?context=actions&amp;icon=edit-delete&amp;size=16',
'title' => _('Remove'),
'alt' => _('Remove')
)
......
......@@ -74,7 +74,7 @@ class multiPlugin extends simplePlugin
}
unset($plug);
if (!$enabled) {
$display = '<img alt="" src="geticon.php?context=status&icon=dialog-error&size=16" align="middle"/>&nbsp;<b>'.
$display = '<img alt="" src="geticon.php?context=status&amp;icon=dialog-error&amp;size=16" align="middle"/>&nbsp;<b>'.
msgPool::noValidExtension()."</b>";
$display .= back_to_main();
return $display;
......
......@@ -129,7 +129,7 @@ class simpleManagement extends management
$this->headpage->categories[] = $i['aclCategory'];
if ($this->autoActions) {
$this->registerAction('new_'.$object, 'newEntry');
$icon = 'geticon.php?context=actions&icon=document-new&size=16';
$icon = 'geticon.php?context=actions&amp;icon=document-new&amp;size=16';
if (isset($i['icon'])) {
$icon = $i['icon'];
} else {
......
......@@ -311,7 +311,7 @@ class simplePlugin extends plugin
return $this->header.$this->inheritanceDisplay();
}
} elseif (!$this->is_account) {
$this->header = '<img alt="" src="geticon.php?context=status&icon=dialog-error&size=16" align="middle"/>&nbsp;<b>'.
$this->header = '<img alt="" src="geticon.php?context=status&amp;icon=dialog-error&amp;size=16" align="middle"/>&nbsp;<b>'.
msgPool::noValidExtension($plInfo['plShortName'])."</b>";
$this->header .= back_to_main();
$this->displayPlugin = FALSE;
......@@ -783,16 +783,16 @@ class simplePlugin extends plugin
$display .= '<input type="submit" name="edit_finish" style="width:80px" value="'.msgPool::okButton().'"/>'."\n";
$display .= "&nbsp;";
$display .= '<input type="submit" name="edit_cancel" value="'.msgPool::cancelButton().'"/>'."\n";
$info = '<img class="center" alt="locked" src="geticon.php?context=status&icon=object-locked&size=16"/> '.
$info = '<img class="center" alt="locked" src="geticon.php?context=status&amp;icon=object-locked&amp;size=16"/> '.
$entry_dn."&nbsp;";
} else {
$info = '<img class="center" alt="unlocked" src="geticon.php?context=status&icon=object-unlocked&size=16"/> '.
$info = '<img class="center" alt="unlocked" src="geticon.php?context=status&amp;icon=object-unlocked&amp;size=16"/> '.
$entry_dn.'&nbsp;';
/* Only display edit button if there is at least one attribute editable */
if (preg_match("/r/", $ui->get_permissions($entry_dn, "$plCategory/$classname"))) {
$info .= '<div style="display:inline-block" class="optional"><img class="center" alt="information" '.
'src="geticon.php?context=status&icon=dialog-information&size=16"> '.
'src="geticon.php?context=status&amp;icon=dialog-information&amp;size=16"> '.
msgPool::clickEditToChange().'</div>';
$display .= '<input type="submit" name="edit" value="'.msgPool::editButton().'"/>'."\n";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment