Skip to content

Commit

Permalink
change title size check to allow bigger titles
Browse files Browse the repository at this point in the history
  • Loading branch information
guga-grigolia authored Nov 29, 2017
1 parent 3aef277 commit e89c281
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Classes/PHPExcel/Worksheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,9 @@ private static function checkSheetCodeName($pValue)
throw new PHPExcel_Exception('Invalid character found in sheet code name');
}

// Maximum 31 characters allowed for sheet title
if ($CharCount > 31) {
throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet code name.');
// Maximum 55 characters allowed for sheet title
if ($CharCount > 55) {
throw new PHPExcel_Exception('Maximum 55 characters allowed in sheet code name.');
}

return $pValue;
Expand All @@ -451,9 +451,9 @@ private static function checkSheetTitle($pValue)
throw new PHPExcel_Exception('Invalid character found in sheet title');
}

// Maximum 31 characters allowed for sheet title
if (PHPExcel_Shared_String::CountCharacters($pValue) > 31) {
throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet title.');
// Maximum 55 characters allowed for sheet title
if (PHPExcel_Shared_String::CountCharacters($pValue) > 55) {
throw new PHPExcel_Exception('Maximum 55 characters allowed in sheet title.');
}

return $pValue;
Expand Down

0 comments on commit e89c281

Please sign in to comment.