__get('activityReport')->addAction( 'blog', 'saba404', __('404 error (saba)'), __('New 404 error page at "%s"'), 'sabaBeforeErrorDocument', function () { $logs = [dcCore::app()->blog->url . urldecode($_SERVER['QUERY_STRING'])]; dcCore::app()->__get('activityReport')->addLog('blog', 'saba404', $logs); } ); }