diff --git a/SourceSFSVN/SourceSFSVN.php b/SourceSFSVN/SourceSFSVN.php index 56546c6..f6fb46d 100644 --- a/SourceSFSVN/SourceSFSVN.php +++ b/SourceSFSVN/SourceSFSVN.php @@ -38,6 +38,12 @@ ); } + function errors() { + return array( + 'SVNPathInvalid' => 'Path to Subversion binary invalid or inaccessible', + ); + } + function get_types( $p_event ) { return array( 'sfsvn' => lang_get( 'plugin_SourceSFSVN_svn' ) ); } diff --git a/SourceSFSVN/pages/config_update.php b/SourceSFSVN/pages/config_update.php index 07a6fab..9b9aa22 100644 --- a/SourceSFSVN/pages/config_update.php +++ b/SourceSFSVN/pages/config_update.php @@ -32,7 +32,10 @@ is_executable( $f_svnpath . DIRECTORY_SEPARATOR . 'svn' ) ) { plugin_config_set( 'svnpath', $f_svnpath ); + } else { + plugin_error( 'SVNPathInvalid' ); } + } } diff --git a/SourceWebSVN/SourceWebSVN.php b/SourceWebSVN/SourceWebSVN.php index c558fdd..50a807d 100644 --- a/SourceWebSVN/SourceWebSVN.php +++ b/SourceWebSVN/SourceWebSVN.php @@ -38,6 +38,12 @@ ); } + function errors() { + return array( + 'SVNPathInvalid' => 'Path to Subversion binary invalid or inaccessible', + ); + } + function get_types( $p_event ) { return array( 'svn' => lang_get( 'plugin_SourceWebSVN_svn' ) ); } diff --git a/SourceWebSVN/pages/config_update.php b/SourceWebSVN/pages/config_update.php index 6d476d5..5645931 100644 --- a/SourceWebSVN/pages/config_update.php +++ b/SourceWebSVN/pages/config_update.php @@ -32,6 +32,8 @@ is_executable( $f_svnpath . DIRECTORY_SEPARATOR . 'svn' ) ) { plugin_config_set( 'svnpath', $f_svnpath ); + } else { + plugin_error( 'SVNPathInvalid' ); } } }