Commit c9784fa4 authored by Your Name's avatar Your Name

修正

parent 9fbb7017
<?php
/**
* Name: Upgrade Info
* Name: Upgrade Info JP
* Description: Show upgrade info at the top of left-aside until dismissed
* Version: 1.0
* Depends: Core
* Author: Mario Vavti <mario@mariovavti.com>
* Depends: harukin
* Author: harukin mod from Mario Vavti <mario@mariovavti.com>
*/
use Zotlabs\Extend\Hook;
function upgrade_info_load(){
Hook::register('construct_page', 'addon/upgrade_info/upgrade_info.php', 'upgrade_info_construct_page');
Hook::register('construct_page', 'addon/upgrade_info/upgrade_infojp.php', 'upgrade_info_construct_page');
}
function upgrade_info_unload(){
Hook::unregister('construct_page', 'addon/upgrade_info/upgrade_info.php', 'upgrade_info_construct_page');
Hook::unregister('construct_page', 'addon/upgrade_info/upgrade_infojp.php', 'upgrade_info_construct_page');
}
function upgrade_info_construct_page(&$b){
......@@ -44,7 +44,7 @@ function upgrade_info_construct_page(&$b){
$content[] = t('変更点は運営公式フォーラムを確認してください!');
$content[] = '<a href="channel/admin_plusharukin">' . t('運営のフォーラムページ') . '</a>';
$tpl = get_markup_template('upgrade_info.tpl', 'addon/upgrade_info');
$tpl = get_markup_template('upgrade_info.tpl', 'addon/upgrade_infojp');
$o = replace_macros($tpl, [
'$title' => t('運営からのお知らせ!'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment