From: umherirrender Date: Fri, 16 Oct 2015 17:34:31 +0000 (+0200) Subject: clone is not a function X-Git-Tag: 1.31.0-rc.0~9248^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%22%20%20%20escapeText%28%20unfilteredUrl%20%29%20%20%20%22?a=commitdiff_plain;h=cf1d31b6046669e8ddf8443fd0ec84e1e5d22c99;p=lhc%2Fweb%2Fwiklou.git clone is not a function Remove parenthesis around clone magic word Change-Id: I2e0e53303f7c73745bd1ab4bcf32e74943efc4de --- diff --git a/includes/Linker.php b/includes/Linker.php index e821004f41..842d276d2a 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1469,7 +1469,7 @@ class Linker { if ( $target->getText() == '' && !$target->isExternal() && !$local && $title ) { - $newTarget = clone ( $title ); + $newTarget = clone $title; $newTarget->setFragment( '#' . $target->getFragment() ); $target = $newTarget; } diff --git a/includes/exception/ErrorPageError.php b/includes/exception/ErrorPageError.php index 3631a3405c..6366c746a3 100644 --- a/includes/exception/ErrorPageError.php +++ b/includes/exception/ErrorPageError.php @@ -44,7 +44,7 @@ class ErrorPageError extends MWException { // passing to the parent constructor. Our overridden report() below // makes sure that the page shown to the user is not forced to English. if ( $msg instanceof Message ) { - $enMsg = clone( $msg ); + $enMsg = clone $msg; } else { $enMsg = wfMessage( $msg, $params ); } diff --git a/includes/page/ImagePage.php b/includes/page/ImagePage.php index 7957e6509d..3638aedb7f 100644 --- a/includes/page/ImagePage.php +++ b/includes/page/ImagePage.php @@ -1533,7 +1533,7 @@ class ImageHistoryPseudoPager extends ReverseChronologicalPager { function __construct( $imagePage ) { parent::__construct( $imagePage->getContext() ); $this->mImagePage = $imagePage; - $this->mTitle = clone ( $imagePage->getTitle() ); + $this->mTitle = clone $imagePage->getTitle(); $this->mTitle->setFragment( '#filehistory' ); $this->mImg = null; $this->mHist = array();