getVersion(), __FILE__, __LINE__, __METHOD__, 9 ); return true; } /** * @return bool */ function postInstall() { // @codingStandardsIgnoreStart global $cache; //assumed needed elsewhere // @codingStandardsIgnoreEnd Debug::text( 'postInstall: ' . $this->getVersion(), __FILE__, __LINE__, __METHOD__, 9 ); Debug::text( 'l: ' . $this->getVersion(), __FILE__, __LINE__, __METHOD__, 9 ); $cjlf = TTnew( 'CronJobListFactory' ); /** @var CronJobListFactory $cjlf */ $cjlf->getAll(); if ( $cjlf->getRecordCount() > 0 ) { foreach ( $cjlf as $cj_obj ) { Debug::text( 'Original Command: ' . $cj_obj->getCommand(), __FILE__, __LINE__, __METHOD__, 9 ); preg_match( '/([A-Za-z0-9]+\.php)/i', $cj_obj->getCommand(), $matches ); if ( isset( $matches[0] ) && $matches[0] != '' ) { Debug::text( 'New Command: ' . $matches[0], __FILE__, __LINE__, __METHOD__, 9 ); $cj_obj->setCommand( $matches[0] ); if ( $cj_obj->isValid() ) { $cj_obj->Save(); } } } } return true; } } ?>