git://git.jankratochvil.net
/
www.energie.vellum.cz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3d161c
)
"have_style" detection code cleanup
author
short
<>
Sat, 8 Sep 2001 20:51:55 +0000
(20:51 +0000)
committer
short
<>
Sat, 8 Sep 2001 20:51:55 +0000
(20:51 +0000)
common.php
patch
|
blob
|
history
diff --git
a/common.php
b/common.php
index
f0fd2c9
..
aae2fe0
100644
(file)
--- a/
common.php
+++ b/
common.php
@@
-25,7
+25,7
@@
else if (ereg("[[:<:]]Mozilla/([0-9]+)\\.",$user_agent,$mozilla_major_a))
$mozilla_major=$mozilla_major_a[1];
- $have_style=!
ereg("Mozilla/4\\.[5-7]",$user_agent)
;
+ $have_style=!
isset($mozilla_major) || $mozilla_major!=4
;
$have_css=true; // doesn't hurt anybody AFAIK
function addpercents($url)