Moved the event logging just before the action.
This commit is contained in:
parent
bbc29c889f
commit
8280add935
@ -42,13 +42,14 @@ class IDF_Plugin_SyncGit
|
|||||||
*/
|
*/
|
||||||
static public function entry($signal, &$params)
|
static public function entry($signal, &$params)
|
||||||
{
|
{
|
||||||
Pluf_Log::event('IDF_Plugin_SyncGit called.');
|
|
||||||
// First check for the single mandatory config variable.
|
// First check for the single mandatory config variable.
|
||||||
if (!Pluf::f('idf_plugin_syncgit_sync_file', false)) {
|
if (!Pluf::f('idf_plugin_syncgit_sync_file', false)) {
|
||||||
Pluf_Log::debug('IDF_Plugin_SyncGit plugin not configured.');
|
Pluf_Log::debug('IDF_Plugin_SyncGit plugin not configured.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ($signal != 'gitpostupdate.php::run') {
|
if ($signal != 'gitpostupdate.php::run') {
|
||||||
|
Pluf_Log::event('IDF_Plugin_SyncGit', 'create',
|
||||||
|
Pluf::f('idf_plugin_syncgit_sync_file'));
|
||||||
@touch(Pluf::f('idf_plugin_syncgit_sync_file'));
|
@touch(Pluf::f('idf_plugin_syncgit_sync_file'));
|
||||||
@chmod(Pluf::f('idf_plugin_syncgit_sync_file'), 0777);
|
@chmod(Pluf::f('idf_plugin_syncgit_sync_file'), 0777);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user