From c1935f6eabafc1e6b32916b544883d513a82f48b Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 1 Apr 2012 22:27:10 -0700 Subject: [PATCH 1/2] make pageheader work on all themes --- pageheader.tgz | Bin 1194 -> 1198 bytes pageheader/pageheader.php | 9 ++++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pageheader.tgz b/pageheader.tgz index 876d37e400b36711ff92d02129d9aebdc5983817..a253238de444fb6b268dbb8010139605016dbfed 100755 GIT binary patch literal 1198 zcmV;f1X24RiwFQ0IC)P11MOFBZ`(Ey_E+myTs5z9idd5011I)SASpKNrNL6{OIsMU zL|a58N)V}}*^vLfBPH8P9M{7 zkj!WZe;M_87!x^ykj~|?QNL!s3`Wp(-Q){?jYzs+yd~pg1Z{nEYZzrQ*Kz8LO))#~ ziEI`zsV?53_6w@LrXmLrl75jb60!v!fk(Nd>C#$M;C_EkXGaUF&tooIg8fPHq_E

D zk>ku$M!C-}i5=0N&7_m0@tlR!xm4_lx{rU3Vazk`DaEj^&MD)VvoLHP6muY@3nsAp zr$HQFHZ8@Rdf4VT5~kSt)*)EL_hasCEp|mIDVS5~1=ayhi~FL(4Cl#IP$?N-h<`3w zv)A``tC%LSkpERrE(DdSIr?BoGk!m)8Q)`AH-+yZu)CD(A+%efd-qE7b%PwfZU_}= z!>F@)^A#{L6--iOMvONP4vae1h0Icpf>kyg>?hxcI7>mun~;itQVB8!8PL2DMGV&z zJi;L&mo#S<3L!-IfisWlmQwN>q%~33K3ai{LS?4)8SF7wCn4jP*iqrwTq`p1xArEX zV^jU&I=CE~5TtZIHZ8EVs0EeN84)x~RRP&xIbVw@3Q!j<6C&y}GB&a9OmHUZ(EOBs z;^wgmOe0?;#-OBQ;mz5iSxSU;Xeo1as&x!=z6#yyreziJYlz%CpIw0$5+TsNB08;E z7<-rI1gT|a(ADLKJtPio4GEJZ`E0ls4dH9fBZN)VFm| z&ffo`__y2K*Ymeo^7r3Nf-QqU%Tn0aKqw0H5z|01^MQc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J;kV^Cl%pg3|Y?j3*1ZMOI;$h1{EW);OR~ethb(Mg^6?oZ)AjmcKTRJJ{?|)JJ zyItYyRa`H``)`)Qj-8-&DI97yl=A-DAeQk^S5Weo*%%*zW4tQe%^fl?+&`<`~S0`c-1%F#p?QyUgLVv zyH7yO!`qf|#zYd5TXpGIGloMdgp!*n{w?0MA|RZ{xN&HN@8QBSKHvpq$zlTZ%Q^Ld zaeZ~s%7J(uibx=Gb!Tb7g}$w=4qD&BjFl)+qC|-jB}$YiQKCeN5+zEMDDhJG8#QP- IsQ@Sd0Kqz1X8-^I diff --git a/pageheader/pageheader.php b/pageheader/pageheader.php index d9b187de..cf92204a 100755 --- a/pageheader/pageheader.php +++ b/pageheader/pageheader.php @@ -10,7 +10,7 @@ */ function pageheader_install() { - register_hook('page_header', 'addon/pageheader/pageheader.php', 'pageheader_fetch'); + register_hook('page_content_top', 'addon/pageheader/pageheader.php', 'pageheader_fetch'); register_hook('plugin_settings', 'addon/pageheader/pageheader.php', 'pageheader_addon_settings'); register_hook('plugin_settings_post', 'addon/pageheader/pageheader.php', 'pageheader_addon_settings_post'); @@ -18,10 +18,13 @@ function pageheader_install() { function pageheader_uninstall() { - unregister_hook('page_header', 'addon/pageheader/pageheader.php', 'pageheader_fetch'); + unregister_hook('page_content_top', 'addon/pageheader/pageheader.php', 'pageheader_fetch'); unregister_hook('plugin_settings', 'addon/pageheader/pageheader.php', 'pageheader_addon_settings'); unregister_hook('plugin_settings_post', 'addon/pageheader/pageheader.php', 'pageheader_addon_settings_post'); + // hook moved, uninstall the old one if still there. + unregister_hook('page_header', 'addon/pageheader/pageheader.php', 'pageheader_fetch'); + } @@ -41,7 +44,7 @@ function pageheader_addon_settings(&$a,&$s) { $words = get_config('pageheader','text'); if(! $words) - $words = 'pageheader,'; + $words = ''; $s .= '

'; $s .= '

' . t('"pageheader" Settings') . '

'; From 3c119e62a3f17b952f794cc777f09e826b6e7418 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 1 Apr 2012 22:27:32 -0700 Subject: [PATCH 2/2] update packages --- pageheader.tgz | Bin 1198 -> 1233 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/pageheader.tgz b/pageheader.tgz index a253238de444fb6b268dbb8010139605016dbfed..80ecd94b4669e09e5cdbe61075e1b35177d3a729 100755 GIT binary patch literal 1233 zcmV;?1TOm@iwFR}IC)P11MOE^Z`w!{<`w^nQ!iVS3T*B~Bv4gKs$K1+(Wcs$wnBqF z#-rF{%QGa+uJYga%-DbvLdZ5DeW*Vv5sbe%_j5Q-$eae0cr?Ij^S}ORyFxsp4xRtu_Wbu+J(d4UQTsX7UQ>|+2uZ)nCJEV`kHDo|(sXGpDro(DM`uS1s`@dPO~L-5c#>Q3 zy>swAaex0OLGp|`cJzM_o4zprv;H5H{r@63ev7#_48wWz#(+2QCyB5z&ae{T7hMYK z@PrCCWr<`lHrlUT&{PT_py~yJ73*)B3e9NSE%p7~LI!aVyOV;f5 z{oN|2Ni5`3^<+X&nVO^bhIGO226e&r7}ibUdkE|3c$$b+)%8{I(bM*EQ03T@xz#=n3=duYifEV3Hy;V!VEE zU{tYG;xm0(# zl2;?miMsa53S<;2Gp#RRkHI<)8Na|L569+Ok%>S5*9je)Y6);~Uo{~}sXsO?u(hZ; zmD3p!bdjo>w!v~9iXsY77cCPa>M=4lF>fX~6Ln~QPCs+=NCl>r?KWdj(y*X zuZmuIaO^1B(S{1}w$8h53kSpqSY}z+td7tF{~m*;AQl?yy_#|1W~#s&BlH)h~2YlIo*SNPtKsb-FziEWqp|FgPxC1O%On`nlryek_w*xI4i0k4N2}G{e vf(D%F9c^`B|IjbzB}$YiQKCeN5+zEMC{dzBi4rABJQ4o^z6Q0(04M+eW~gA# literal 1198 zcmV;f1X24RiwFQ0IC)P11MOFBZ`(Ey_E+myTs5z9idd5011I)SASpKNrNL6{OIsMU zL|a58N)V}}*^vLfBPH8P9M{7 zkj!WZe;M_87!x^ykj~|?QNL!s3`Wp(-Q){?jYzs+yd~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