Hello,
I was getting same error - History.php on line 72, I modified History.php (red code) but now I'm getting the following: Parse error: syntax error, unexpected T_PUBLIC in /crm/modules/ModuleBuilder/parsers/views/History.php on line 93. Would anyone know what could be causing this issue? I'm using SUGAR COMMUNITY EDITION - Version 6.4.0beta3 (Build 7099). This is the code from /crm/modules/ModuleBuilder/parsers/views/History.php (line 72 to 95)
Code:
// Reconstruct the history from the saved files
$filebytimestamp = glob($this->getFileByTimestamp('*'));
if (is_array($filebytimestamp)){
foreach ($filebytimestamp as $filename)
{
if(preg_match('/(\d+)$/', $filename, $match)) {
$this->_list [] = $match[1];
}
}
}
// now sort the files, oldest first
if (count ( $this->_list ) > 0)
{
sort ( $this->_list ) ;
}
}
/*
* Get the most recent item in the history
* @return timestamp of the first item
*/
public function getCount ()
{
return count ( $this->_list ) ; Thank You
Bookmarks