Commit 024fed91 authored by m.stenta's avatar m.stenta
Browse files

Clean up unnecessary action code.

parent bdf09c5f
......@@ -389,15 +389,12 @@ function log_action_info() {
*
* Marks a log as done.
*
* @param object $entity
* @param object $log
* The log entity object.
* @param array $context
* Array with parameters for this action.
*/
function log_done_action($entity, $context = array()) {
// Pull the log out of the context.
$log = $context['log'];
function log_done_action($log, $context = array()) {
// Only proceed if the log is not already done.
if ($log->done) {
......@@ -416,15 +413,12 @@ function log_done_action($entity, $context = array()) {
*
* Marks a log as not done.
*
* @param object $entity
* @param object $log
* The log entity object.
* @param array $context
* Array with parameters for this action.
*/
function log_undone_action($entity, $context = array()) {
// Pull the log out of the context.
$log = $context['log'];
function log_undone_action($log, $context = array()) {
// Only proceed if the log is already done.
if (!$log->done) {
......
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