Revision: 1531
Author:   [email protected]
Date:     Wed Mar 14 06:40:26 2012
Log:      接受插件返回的header
http://code.google.com/p/typecho/source/detail?r=1531

Modified:
 /trunk/admin/header.php
 /trunk/var/Widget/Archive.php

=======================================
--- /trunk/admin/header.php     Thu Oct 15 01:54:15 2009
+++ /trunk/admin/header.php     Wed Mar 14 06:40:26 2012
@@ -8,7 +8,7 @@
<link rel="stylesheet" type="text/css" href="' . Typecho_Common::url('css/typecho.source.css?v=' . $suffixVersion, $options->adminUrl) . '" />';

 /** 注册一个初始化插件 */
-Typecho_Plugin::factory('admin/header.php')->header($header);
+$header = Typecho_Plugin::factory('admin/header.php')->header($header);

 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
=======================================
--- /trunk/var/Widget/Archive.php       Sat Mar  3 16:06:37 2012
+++ /trunk/var/Widget/Archive.php       Wed Mar 14 06:40:26 2012
@@ -1603,7 +1603,7 @@
         }

         /** 插件支持 */
-        $this->pluginHandle()->header($header, $this);
+        $header = $this->pluginHandle()->header($header, $this);

         /** 输出header */
         echo $header;
_______________________________________________
announce mailing list
[email protected]
http://lists.typecho.org/mailman/listinfo/announce

回复