• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-next: List of commits

Nucleus CMSの新リリースを準備するためのリポジトリ。現在はNucleus CMS 4.0にマージするためのコードをコミットしている。


RSS
Rev. Hora Autor
c90b098 master 2012-09-17 20:10:23 sakamocchi

Merge branch 'skinnable-master'

Conflicts:
action.php
index.php
install/index.php
nucleus/bookmarklet.php
nucleus/convert/functions.inc.php
nucleus/convert/wordpress.php
nucleus/index.php
nucleus/libs/ACTION.php
nucleus/libs/ACTIONLOG.php
nucleus/libs/ACTIONS.php
nucleus/libs/ADMIN.php
nucleus/libs/BAN.php
nucleus/libs/BLOG.php
nucleus/libs/BODYACTIONS.php
nucleus/libs/BaseActions.php
nucleus/libs/COMMENT.php
nucleus/libs/COMMENTACTIONS.php
nucleus/libs/COMMENTS.php
nucleus/libs/ITEM.php
nucleus/libs/ITEMACTIONS.php
nucleus/libs/KARMA.php
nucleus/libs/MANAGER.php
nucleus/libs/MEDIA.php
nucleus/libs/MEMBER.php
nucleus/libs/NOTIFICATION.php
nucleus/libs/PAGEFACTORY.php
nucleus/libs/PARSER.php
nucleus/libs/PLUGIN.php
nucleus/libs/PLUGINADMIN.php
nucleus/libs/SEARCH.php
nucleus/libs/SKIN.php
nucleus/libs/TEMPLATE.php
nucleus/libs/backup.php
nucleus/libs/globalfunctions.php
nucleus/libs/i18n.php
nucleus/libs/include/admin-add.template
nucleus/libs/include/admin-edit.template
nucleus/libs/include/bookmarklet-add.template
nucleus/libs/include/bookmarklet-edit.template
nucleus/libs/showlist.php
nucleus/libs/skinie.php
nucleus/libs/sql/DB.php
nucleus/libs/sql/MYSQLPDO.php
nucleus/libs/sql/sql.php
nucleus/locales/bg_Cyrl_BG.ISO-8859-5.php
nucleus/locales/bg_Cyrl_BG.UTF-8.php
nucleus/locales/ca_Latn_ES.ISO-8859-1.php
nucleus/locales/ca_Latn_ES.UTF-8.php
nucleus/locales/cs_Latn_CZ.UTF-8.php
nucleus/locales/cs_Latn_CZ.WINDOWS-1250.php
nucleus/locales/de_Latn_DE.ISO-8859-1.php
nucleus/locales/de_Latn_DE.UTF-8.php
nucleus/locales/en_Latn_US.ISO-8859-1.php
nucleus/locales/en_Latn_US.UTF-8.php
nucleus/locales/es_Latn_ES.ISO-8859-1.php
nucleus/locales/es_Latn_ES.UTF-8.php
nucleus/locales/fa_Arab_IR.UTF-8.php
nucleus/locales/fi_Latn_FI.ISO-8859-1.php
nucleus/locales/fi_Latn_FI.UTF-8.php
nucleus/locales/fr_Latn_FR.ISO-8859-15.php
nucleus/locales/fr_Latn_FR.UTF-8.php
nucleus/locales/gl_Latn_ES.ISO-8859-1.php
nucleus/locales/gl_Latn_ES.UTF-8.php
nucleus/locales/hr_Latn_HR.UTF-8.php
nucleus/locales/hr_Latn_HR.WINDOWS-1250.php
nucleus/locales/hu_Latn_HU.ISO-8859-2.php
nucleus/locales/hu_Latn_HU.UTF-8.php
nucleus/locales/id_Latn_ID.ISO-8859-1.php
nucleus/locales/id_Latn_ID.UTF-8.php
nucleus/locales/it_Latn_IT.ISO-8859-1.php
nucleus/locales/it_Latn_IT.UTF-8.php
nucleus/locales/ja_Jpan_JP.EUC-JP.php
nucleus/locales/ja_Jpan_JP.UTF-8.php
nucleus/locales/ko_Kore_KR.EUC-KR.php
nucleus/locales/ko_Kore_KR.UTF-8.php
nucleus/locales/ku_Arab_TR.UTF-8.php
nucleus/locales/lv_Latn_LV.ISO-8859-13.php
nucleus/locales/lv_Latn_LV.UTF-8.php
nucleus/locales/nl_Latn_NL.ISO-8859-15.php
nucleus/locales/nl_Latn_NL.UTF-8.php
nucleus/locales/pl_Latn_PL.UTF-8.php
nucleus/locales/pt_Latn_BR.ISO-8859-1.php
nucleus/locales/pt_Latn_BR.UTF-8.php
nucleus/locales/ro_Latn_RO.ISO-8859-1.php
nucleus/locales/ro_Latn_RO.UTF-8.php
nucleus/locales/ru_Cyrl_RU.UTF-8.php
nucleus/locales/ru_Cyrl_RU.WINDOWS-1251.php
nucleus/locales/sk_Latn_SK.ISO-8859-2.php
nucleus/locales/sk_Latn_SK.UTF-8.php
nucleus/locales/sr_Cyrl_RS.UTF-8.php
nucleus/locales/ur_Arab_PK.UTF-8.php
nucleus/locales/vi_Latn_VN.UTF-8.php
nucleus/locales/zh_Hans_CN.GB2312.php
nucleus/locales/zh_Hans_CN.UTF-8.php
nucleus/locales/zh_Hant_TW.UTF-8.php
nucleus/media.php
nucleus/plugins/NP_SecurityEnforcer.php
nucleus/plugins/NP_SkinFiles.php
nucleus/upgrades/upgrade.functions.php
nucleus/upgrades/upgrade4.0.php
nucleus/xmlrpc/server.php
skins/admin/bookmarklet/styles/addedit.css
skins/default/nicetitle.js

6575e86 2012-09-17 14:48:48 sakamocchi

FIX: リファレンスにまつわるコードを修正

1. リファレンス渡しは関数定義でのみ有効であり、関数呼び出しでは致命的なエラーとなる
参照: http://php.net/manual/en/language.references.pass.php
引用: 「注意: 関数コールの際には、リファレンス記号がないことに注意してください。
関数定義にのみリファレンス記号があります。リファレンスで正しく引数を 渡すには、関数定義のみで十分です。以前のバージョンの PHP では
foo(&$a); のような形式で & を利用すると "Call-time pass-by-reference"
という警告が発生していましたが、 PHP 5.3.0 以降では警告は発生しません。 また、PHP 5.4.0 以降では
call-time pass-by-reference 機能自体が削除されたので、 これを使おうとすると fatal エラーが発生します。」

2.callableタイプヒントとして配列宣言をしてオブジェクトのインスタンスとメソッドを渡す場合、配列の一つ目のインスタンスは自動でリファレンス参照として扱われる。
参照: http://php.net/manual/en/language.types.callable.php
引用: 「注意: PHP 4 では、実際のオブジェクトを指すコールバックを作成するには、
コピーではなく参照を使わなければなりませんでした。 詳細は 参照についての説明 を参照ください。」

上記を踏まえ、参照を伴うcall_user_func()/call_user_func_array()、array_merge()の関数呼び出しを修正したほか、より誤解の少ないコードに変更した。

b8776ac 2012-07-30 09:12:53 shizuki

CHANGE:管理画面用スキンの緊急インポート成功時に「管理ホーム」に移動するように変更

0b0d97c 2012-07-30 08:32:19 shizuki

FIX:Strict Standards: Only variables should be passed by reference in
ITEMACTIONS.php on line 820 の修正

15f9a0c 2012-07-30 08:26:32 shizuki

「メンバーの編集(editmembersettings)」画面でスキン変数<%pluginextras%>がパースされていなかった不具合を修正

3375c0b 2012-07-01 14:13:58 shizuki

MERGE: リビジョン1992。テンプレート「SHOWLIST_LISTPLUG_TABLE_NAVILIST」の追加

<%commentnavlist%>、<%itemnavlist%>のナビゲーション部分はハードコーディングされていたが、これをテンプレートで編集可能とした。

Revision 1992:
ADD: template named as SHOWLIST_LISTPLUG_TABLE_NAVILIST
This template is for navigation list for items and comments.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1902

0ba23cd 2012-07-01 14:08:25 shizuki

MERGE: リビジョン1991。Adminクラスにおける<%skinfile%>の引数を修正

BaseActions::parse_skinfile()はディレクトリ区切り文字を付加しないことを考慮した修正。

Revision 1991:
FIX: the wrong path for <%skinfile%> in Admin class
BaseActions::parse_skinfile() don't add path separator. So <%skinfile%>
needs it.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1901

d662fa8 2012-07-01 01:49:03 sakamocchi

MERGE: リビジョン1894〜1990

Revision 1894:
CHANGE: make setlocale() do in include_translation()
The aim of this patch is preventing from E_NOTICE/E_STRICT/E_WARNING
generated by time/date-related function. If the PHP process has no
locale settings, these functions generate these messages.
What is that PHP process has locale settings:
setlocale() is executed in the script in advance of executing
time/date-related functions.
To confirm this, this patch executes setlocale() in
include_translation() in globalfunctions.php, refering to
i18n::get_current_locale() or i18n::get_forced_locale().
But there are some problems:
1. Some translation files executes setlocale() when they are included.
2. Some templates includes LOCALE template and Template:read() execute
setlocale() with it.
3. <%archivedate%> can given locale argument and execute setlocale()
with it.
4. The arguments of setlocale() depends on each implement of C library.
This causes apparent difference between Windows and the others.
To solve these:
1. Remove for unification of setlocale()
2. Remove for unification of setlocale()
3. Deprecate for unification of setlocale()
4. Add _LOCALE_IN_WINDOWS constant value in each translation files and
include_translation() include it when the server is running under
windows operating system.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1894

Revision 1895:
supplemental for previous commit
I did fail to patch for ja_Jpan_JP.EUC-JP.php at 1894.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1895

Revision 1896:
FIX: reference issue
Making arguments be passed by reference > Function arguments @ php.net
http://php.net/manual/en/functions.arguments.php
According to PHP document, the value with reference:
A. can be written in arguments of functions or class methods
B. can't be given to arguments of calling functions or class methods
In this grammer,
A. function hoge(&$data) is OK
B. hoge(&$data) isn't OK
And if we want to give array as argument for calling function or class
methods, we should put array to a variable once.
This commit modify some codes related to these points
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1896

Revision 1897:
ADD: give an argument for template name to <%commentnavlist%> tag
Add missing argument for AdminActions::parse_commentnavlist().
And modify the comment of AdminActions::parse_itemnavlist()
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1897

Revision 1898:
ADD: E_STRICT for $CONF['debug'] mode
Previously E_ALL is set for $CONF['debug'] mode but E_STRICT should also
be applied.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1898

Revision 1899:
FIX: Strict Standards Errors
Some codes generates Strict Standards Errors. This commit fix these.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1899

Revision 1890:
FIX: enable update scripts to run previous version
We changed upgrades scripts with some functions added in 4.0 but it's
wrong. This commit
fix it and add some codes for 4.0.
http://nucleuscms.svn.sourceforge.net/viewvc/nucleuscms?view=revision&revision=1890

da44c01 2012-06-29 01:07:07 sakamocchi

前回のコミットの補遺

コミット「7ea26abd7e41c2644f42ce936f6557d58755cb3a」は、Manager::notify()で参照が付与された変数を扱う際に、PHPの文法に従っていなかったというバグの修正が目的だった。
すなわち、以下のPHPマニュアルを参照して

参照渡しで引数を作成する > 関数の引数 @ jp2.php.net
http://jp2.php.net/manual/ja/functions.arguments.php#functions.arguments.by-reference

参照を付与した変数に関して以下のことが言える。
A. 関数・メソッド定義の引数に記述することはできる
B. 関数・メソッド呼び出しの引数には記述できない

修正漏れしていたいくつかのスクリプトを、このルールに従い、このコミットで修正する。

7ea26ab 2012-06-28 01:00:43 reine

FIX:$manager->notify()の第二引数に変数を渡すように修正。

スクリプトに含まれるすべての$manager->notify()の第二引数を変数に変更した
プラグインメソッドは、引数を参照で受け取るようにする必要がある。

421907a 2012-06-27 22:50:58 reine

Revert "FIX:プラグインに渡す引数が参照で無いためプラグインオブジェクトのイベントメソッドが呼ばれない問題を修正。"

実際は上記コミット後に以下の修正が入っていたので改行コードをLFに変更した。
FIX:MANAGER::instance()をstaticに
いくつかのstandardsエラーの修正

d5dd759 2012-06-27 00:34:33 shizuki

いくつかのstandardsエラーの修正

e8e7180 2012-06-26 20:04:51 shizuki

FIX:MANAGER::instance()をstaticに

ec5dbbb 2012-06-25 00:16:40 reine

FIX:プラグインに渡す引数が参照で無いためプラグインオブジェクトのイベントメソッドが呼ばれない問題を修正。

PreItemイベントでNP_AccessControlが正常に動作しない事例を確認。
call_user_func()の第二引数を'&$data'とするとメソッドが呼び出されることを確認。

e547917 2012-06-23 00:39:54 reine

FIX:アップグレードスクリプトがNucleus3.6上で動作するように修正

全アップグレードスクリプトのデータベースハンドラの変更を元に戻した。
(完全にRevertとも言えないのでFIXとしています)

d9398de 2012-06-22 00:43:44 reine

ADD:バージョン4.0へのアップグレードスクリプトを作成

0f2bcd5 2012-06-17 18:05:40 sakamocchi

MERGE: リビジョン1873〜1893。skinnable-masterのマージ

skinnable-masterを上流にマージした。

加えて、コード規則に従い、改行記号はUnixライクなLFに統一した。

b767b4e 2012-06-17 15:36:12 sakamocchi

FIX: blogsettingsのマークアップ修正

e7b8e89 2012-06-17 13:19:29 sakamocchi

FIX: skinieoverview/templateeditのマークアップ修正

b690910 2012-06-17 11:54:12 sakamocchi

FIX: 管理画面用スキンのマークアップ修正

table要素のthead/tbody子要素の追加

8a5f342 2012-06-17 10:54:19 sakamocchi

CHANGE: <%locale%>を再整備

XML要素の属性に用いるための<%locale%>を、language-regionを出力するように変更。
管理画面用スキンがja-JPを含んでいたため置換した。

80cff3a 2012-06-17 10:36:21 sakamocchi

REMOVE: contemporary_jpに関するファイルやコードを除外

日本語用パッケージ由来のファイルは上流に含まないほうがよい

21bdb5d 2012-06-16 22:17:05 sakamocchi

FIX: Admin::$ticketless_actionsにbrowseownitemsを追加

チケット不要なアクションだったため

ab0172c 2012-06-16 22:10:45 sakamocchi

FIX: AdminActions::$normal_skin_typesの変更

liginとmembereditを除外
ほか、normalに関する前回変更の修正

d3d8940 2012-06-16 21:13:42 sakamocchi

CHANGE: ノーマルスキンタイプに関する修正

標準のスキンタイプをノーマルと定義し、クラスメンバー・メソッドをnormalという名前に統一した。

587960e 2012-06-16 20:43:59 sakamocchi

FIX: ラベル「includeプリフィックス」が表示されないバグ(skinoverview/adminskinoverview)

showlist.phpにおいて定数の参照が間違えていたバグの修正。

97feb87 2012-06-16 20:03:20 sakamocchi

FIX: NP_Mediaの翻訳メッセージが適用されないバグ、ファイルサイズが表示されないバグ

ラベル名が異なるためメッセージが適用されなかった。
MediaObject::refine()をしなければファイルサイズや画像の縦横比が取得出来なかった。

23449a8 2012-06-16 19:33:54 sakamocchi

CHANGE: メディア管理プラグインがない場合、ダイアログを表示した際にアラートを表示

NP_MediumあるいはNP_MediaTocuなどのプラグインがインストールされていない場合、アイテム追加・編集画面でダイアログを開くと「Media
Plugin Not Fount」のアラートが出るよう修正。
合わせて、JavaScriptのメソッド「setMediaPopupURL」を削除。

9bf2334 2012-06-16 19:19:56 sakamocchi

ADD: NP_Mediumに日本語訳ファイルを追加

987278e 2012-06-16 13:23:13 sakamocchi

FIX: 管理画面用スキンのマークアップの修正

table要素に関して

Show on old repository browser