projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'origin/core-1.0.0' into core
[platal.git]
/
plugins
/
compiler.icon.php
diff --git
a/plugins/compiler.icon.php
b/plugins/compiler.icon.php
index
330ea84
..
4487e59
100644
(file)
--- a/
plugins/compiler.icon.php
+++ b/
plugins/compiler.icon.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
7
Polytechnique.org *
+ * Copyright (C) 2003-200
9
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-23,20
+23,24
@@
function smarty_compiler_icon($tag_attrs, &$compiler)
{
extract($compiler->_parse_attrs($tag_attrs));
{
extract($compiler->_parse_attrs($tag_attrs));
+ $alt = 'alt=""';
+
if (isset($title)) {
if (isset($title)) {
- $title = 'title="'.htmlentities(trim($title, '\'"'), ENT_QUOTES).'" ';
+ $title = pl_entities(trim($title, '\'"'), ENT_QUOTES);
+ $alt = 'alt="'.$title.'"';
+ $title = 'title="'. $title.'" ';
}
}
- $name =
html
entities(trim($name, '\'"'), ENT_QUOTES);
+ $name =
pl_
entities(trim($name, '\'"'), ENT_QUOTES);
$name = "images/icons/$name.gif";
$name = "images/icons/$name.gif";
- if ($full) {
+ if (
isset($full) &&
$full) {
global $globals;
$name = $globals->baseurl . '/' . $name;
}
global $globals;
$name = $globals->baseurl . '/' . $name;
}
- return "?><img src='$name'
alt=''
$title /><?php";
+ return "?><img src='$name'
$alt
$title /><?php";
}
}
-/* vim: set expandtab: */
+/* vim: set expandtab
enc=utf-8
: */
?>
?>