Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
f700f634
Commit
f700f634
authored
12 years ago
by
Marcos García de La Fuente
Browse files
Options
Downloads
Patches
Plain Diff
Little refactor + cpd
parent
30d22378
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/lib/functions.lib.php
+16
-13
16 additions, 13 deletions
htdocs/core/lib/functions.lib.php
with
16 additions
and
13 deletions
htdocs/core/lib/functions.lib.php
+
16
−
13
View file @
f700f634
...
...
@@ -2048,22 +2048,25 @@ function img_mime($file, $alt = '')
}
/**
/**
* Show phone logo.
* Use img_picto instead.
*
* @param string $alt Text to show on alt image
* @param int $option Option
*
* @param string $alt Text to show on alt image
* @param int $option Option
* @return string Return img tag
* @deprecated
*/
function
img_phone
(
$alt
=
"default"
,
$option
=
0
)
{
global
$conf
,
$langs
;
if
(
$alt
==
"default"
)
$alt
=
$langs
->
trans
(
"Call"
);
$img
=
'call_out'
;
if
(
$option
==
1
)
$img
=
'call'
;
return
'<img src="'
.
DOL_URL_ROOT
.
'/theme/'
.
$conf
->
theme
.
'/img/'
.
$img
.
'.png" border="0" alt="'
.
dol_escape_htmltag
(
$alt
)
.
'" title="'
.
dol_escape_htmltag
(
$alt
)
.
'">'
;
* @deprecated
*/
function
img_phone
(
$alt
=
'default'
,
$option
=
0
)
{
global
$conf
,
$langs
;
if
(
$alt
==
'default'
)
$alt
=
$langs
->
trans
(
'Call'
);
if
(
$option
==
1
)
$img
=
'call'
;
else
$img
=
'call_out'
;
return
img_picto
(
$alt
,
$img
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment