summaryrefslogtreecommitdiffstats
path: root/examples/server/lib
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2006-02-09 02:13:10 +0000
committerJosh Hoyt <josh@janrain.com>2006-02-09 02:13:10 +0000
commit300b1677b18977e6b5966878ddbbdaf3d383b079 (patch)
tree88fd4b4c072e6aa0c01004e1485592b8f89a9c9e /examples/server/lib
parent997b999147ece7b8c9e2cf3c5cb040196d3564f1 (diff)
downloadphp-openid-300b1677b18977e6b5966878ddbbdaf3d383b079.zip
php-openid-300b1677b18977e6b5966878ddbbdaf3d383b079.tar.gz
php-openid-300b1677b18977e6b5966878ddbbdaf3d383b079.tar.bz2
[project @ Automatically build the stylesheet URL]
Diffstat (limited to 'examples/server/lib')
-rw-r--r--examples/server/lib/session.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/server/lib/session.php b/examples/server/lib/session.php
index 956e914..392a0fd 100644
--- a/examples/server/lib/session.php
+++ b/examples/server/lib/session.php
@@ -17,8 +17,8 @@ function init()
*/
function getStyle()
{
- global $style;
- return $style;
+ $url = htmlspecialchars(dirname(buildURL()) . '/default.css', ENT_QUOTES);
+ return sprintf('<link rel="stylesheet" type="text/css" href="%s" />', $url);
}
/**