dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
raise timeout for CdbTest::testCdb()
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiComparePages.php
diff --git
a/includes/api/ApiComparePages.php
b/includes/api/ApiComparePages.php
index
6741259
..
863b70b
100644
(file)
--- a/
includes/api/ApiComparePages.php
+++ b/
includes/api/ApiComparePages.php
@@
-85,11
+85,11
@@
class ApiComparePages extends ApiBase {
* @return int
*/
private function revisionOrTitleOrId( $revision, $titleText, $titleId ) {
* @return int
*/
private function revisionOrTitleOrId( $revision, $titleText, $titleId ) {
- if( $revision ){
+ if( $revision )
{
return $revision;
} elseif( $titleText ) {
$title = Title::newFromText( $titleText );
return $revision;
} elseif( $titleText ) {
$title = Title::newFromText( $titleText );
- if( !$title ){
+ if( !$title )
{
$this->dieUsageMsg( array( 'invalidtitle', $titleText ) );
}
return $title->getLatestRevID();
$this->dieUsageMsg( array( 'invalidtitle', $titleText ) );
}
return $title->getLatestRevID();
@@
-172,8
+172,4
@@
class ApiComparePages extends ApiBase {
'api.php?action=compare&fromrev=1&torev=2' => 'Create a diff between revision 1 and 2',
);
}
'api.php?action=compare&fromrev=1&torev=2' => 'Create a diff between revision 1 and 2',
);
}
-
- public function getVersion() {
- return __CLASS__ . ': $Id$';
- }
}
}