Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Updated to trigger an error if controller not found, not output to bu…
Browse files Browse the repository at this point in the history
…ffer.
  • Loading branch information
michaelchisari authored and The Appleseed Project committed Oct 5, 2010
1 parent ad1aa59 commit 380c27d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ private function _LoadController ( $pController = null ) {
$class = 'c' . $componentname . $controllername . 'Controller';

if ( !is_file ( $filename ) ) {
echo __("Controller Not Found", array ( 'name' => $pController ) );
$error = __("Controller Not Found", array ( 'name' => $pController ) );
trigger_error ($error, E_USER_WARNING );
return ( false );
}

Expand Down

0 comments on commit 380c27d

Please sign in to comment.