Commit 0185a108 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #235 in ZP/z-push from...

Merge pull request #235 in ZP/z-push from feature/ZP-929-koe-make-syncgab-script-executable to develop

* commit 'd958cbd8':
  ZP-929 Added php shebang, don't check if worker exists, just try to include it.
parents ff185cf9 d958cbd8
#!/usr/bin/php
<?php
/***********************************************
* File : gab-sync.php
......@@ -119,16 +120,10 @@ class GabSyncCLI {
static public function SetupSyncWorker() {
$file = "lib/" .strtolower(SYNCWORKER).".php";
if (!file_exists($file)) {
self::$errormessage = "SyncWorker file '".$file."' can not be found. Check your configuration.";
return false;
}
else {
include_once($file);
}
@include_once($file);
if (!class_exists(SYNCWORKER)) {
self::$errormessage = "SyncWorker file loaded, but class '".SYNCWORKER."' can not be found. Check your implementation.";
self::$errormessage = "SyncWorker file loaded, but class '".SYNCWORKER."' can not be found. Check your configuration or implementation.";
}
else {
$s = @constant('SYNCWORKER');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment