]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3662. Pulled out shortcut_icon to its own view for easier overriding.
authorBrett Profitt <brett.profitt@gmail.com>
Thu, 25 Aug 2011 16:30:55 +0000 (09:30 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Thu, 25 Aug 2011 16:30:55 +0000 (09:30 -0700)
views/default/page/elements/head.php
views/default/page/elements/shortcut_icon.php [new file with mode: 0644]

index 048edec4053bcc36bf9af48f779d7673666f2ae6..8776f07a72eab45fa6765c1e568cb0a3fab3ab30 100644 (file)
@@ -40,7 +40,7 @@ $release = get_version(true);
        <meta name="ElggRelease" content="<?php echo $release; ?>" />
        <meta name="ElggVersion" content="<?php echo $version; ?>" />
        <title><?php echo $title; ?></title>
-       <link rel="SHORTCUT ICON" href="<?php echo elgg_get_site_url(); ?>_graphics/favicon.ico" />
+       <?php echo elgg_view('page/elements/shortcut_icon', $vars); ?>
 
 <?php foreach ($css as $link) { ?>
        <link rel="stylesheet" href="<?php echo $link; ?>" type="text/css" />
diff --git a/views/default/page/elements/shortcut_icon.php b/views/default/page/elements/shortcut_icon.php
new file mode 100644 (file)
index 0000000..12fe9c1
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+/**
+ * Displays the default shortcut icon
+ */
+?>
+<link rel="SHORTCUT ICON" href="<?php echo elgg_get_site_url(); ?>_graphics/favicon.ico" />
\ No newline at end of file