Changeset 1178
- Timestamp:
- 07/04/2008 10:12:57 PM (5 years ago)
- Files:
-
- 1 modified
-
trunk/libs/Wakka.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/Wakka.class.php
r1173 r1178 561 561 * @param boolean $makepage optional: create a "page" div for error; default FALSE 562 562 * @param string $vars optional: vars to be passed to the file to handle. default: '' 563 * @param boolean $err optional: error flag indicating whether or not an error message was returned 563 564 * @return string the included file's output or the $not_found_text if the file could not be found 564 565 */ 565 function IncludeBuffered($filename, $path, $not_found_text, $makepage=FALSE, $vars='' )566 function IncludeBuffered($filename, $path, $not_found_text, $makepage=FALSE, $vars='', &$err='') 566 567 { 567 568 #echo 'IncludeBuffered - filename specified: '.$filename."<br/>\n"; … … 583 584 extract($vars, EXTR_SKIP); // [SEC] EXTR_SKIP avoids collision with existing filenames 584 585 } 586 $err = false; 585 587 ob_start(); 586 588 include $fullfilepath; // this is where it all happens! … … 593 595 $output = ($makepage) ? '<div class="page"><em class="error">'.$not_found_text.'</em></div>' : '<em class="error">'.$not_found_text.'</em>'; 594 596 } 597 $err = true; 595 598 return $output; 596 599 }