X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=includes%2Flogging%2FLogPage.php;h=faca5bc8a17d0f06c13015eba92329c6d3fc2fbe;hb=91a920fd85c34e64f47140ed82f2ac0913ed8033;hp=daaff07a1e42bf02d69b3fa958a600f679d458b0;hpb=2a1fcd27c19913394c179cbe8be1a9e981d7f81b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index daaff07a1e..faca5bc8a1 100644 --- a/includes/logging/LogPage.php +++ b/includes/logging/LogPage.php @@ -27,7 +27,6 @@ * Class to simplify the use of log pages. * The logs are now kept in a table which is easier to manage and trim * than ever-growing wiki pages. - * */ class LogPage { const DELETED_ACTION = 1; @@ -73,8 +72,6 @@ class LogPage { private $target; /** - * Constructor - * * @param string $type One of '', 'block', 'protect', 'rights', 'delete', * 'upload', 'move' * @param bool $rc Whether to update recent changes as well as the logging table @@ -111,7 +108,7 @@ class LogPage { 'log_params' => $this->params ]; $dbw->insert( 'logging', $data, __METHOD__ ); - $newId = !is_null( $log_id ) ? $log_id : $dbw->insertId(); + $newId = $dbw->insertId(); # And update recentchanges if ( $this->updateRecentChanges ) {