| @@ 1125-1129 (lines=5) @@ | ||
| 1122 | //let's see if we can get that file... if not its possible this is a decaf route not set in caffienated so lets try and get the caffeinated equivalent |
|
| 1123 | $file_path = ! is_readable($file_path) ? EE_ADMIN_PAGES . basename($this->_get_dir()) . '/help_tours/' . $tour . '.class.php' : $file_path; |
|
| 1124 | //if file is STILL not readable then let's do a EE_Error so its more graceful than a fatal error. |
|
| 1125 | if ( ! is_readable($file_path)) { |
|
| 1126 | EE_Error::add_error(sprintf(__('The file path given for the help tour (%s) is not a valid path. Please check that the string you set for the help tour on this route (%s) is the correct spelling', 'event_espresso'), |
|
| 1127 | $file_path, $tour), __FILE__, __FUNCTION__, __LINE__); |
|
| 1128 | return; |
|
| 1129 | } |
|
| 1130 | require_once $file_path; |
|
| 1131 | if ( ! class_exists($tour)) { |
|
| 1132 | $error_msg[] = sprintf(__('Something went wrong with loading the %s Help Tour Class.', 'event_espresso'), $tour); |
|
| @@ 540-548 (lines=9) @@ | ||
| 537 | EE_Session::hash_check_prefix . $this->_sid, |
|
| 538 | false |
|
| 539 | ); |
|
| 540 | if ($hash_check && $hash_check !== md5($session_data)) { |
|
| 541 | EE_Error::add_error( |
|
| 542 | sprintf( |
|
| 543 | __( |
|
| 544 | 'The stored data for session %1$s failed to pass a hash check and therefore appears to be invalid.', |
|
| 545 | 'event_espresso' |
|
| 546 | ), |
|
| 547 | EE_Session::session_id_prefix . $this->_sid |
|
| 548 | ), |
|
| 549 | __FILE__, __FUNCTION__, __LINE__ |
|
| 550 | ); |
|
| 551 | } |
|