diff options
Diffstat (limited to 'includes/api/ApiQueryBase.php')
-rw-r--r-- | includes/api/ApiQueryBase.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index 96c766b09894..d44a2f303f2b 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -365,7 +365,7 @@ abstract class ApiQueryBase extends ApiBase { * @return string Page title with underscores */ public function titleToKey( $title ) { - # Don't throw an error if we got an empty string + // Don't throw an error if we got an empty string if ( trim( $title ) == '' ) return ''; $t = Title::newFromText( $title ); @@ -380,11 +380,11 @@ abstract class ApiQueryBase extends ApiBase { * @return string Page title with spaces */ public function keyToTitle( $key ) { - # Don't throw an error if we got an empty string + // Don't throw an error if we got an empty string if ( trim( $key ) == '' ) return ''; $t = Title::newFromDbKey( $key ); - # This really shouldn't happen but we gotta check anyway + // This really shouldn't happen but we gotta check anyway if ( !$t ) $this->dieUsageMsg( array( 'invalidtitle', $key ) ); return $t->getPrefixedText(); |