File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -373,6 +373,7 @@ public function updateAction()
373373 $ newver = SpamFilter_Version::getCurrentVersion (
374374 $ values ['update_type ' ], true
375375 ); // realtime checking enabled
376+ $ newver = $ newver ?: SpamFilter_Version::getUsedVersion ();
376377 $ this ->_flashMessenger ->addMessage (
377378 array (
378379 'message ' => $ this ->t ->_ ('Installing addon update ' ) . ' <strong>v ' . $ newver . '</strong> ' . $ this ->t ->_ ('in tier ' ) . ' <strong> ' . $ values ['update_type ' ] . '</strong> ' ,
Original file line number Diff line number Diff line change 5151
5252define ('DEST_PATH ' , '/usr/local/prospamfilter ' );
5353define ('BASE_PATH ' , '/usr/src/prospamfilter ' );
54+ define ('TMP_PATH ' , BASE_PATH . "/tmp/ " );
5455define ('CFG_PATH ' , '/etc/prospamfilter ' );
5556
5657require_once BASE_PATH . DS . 'library ' . DS . 'functions.php ' ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function check_php_version {
2929 echo " $1 : invalid PHP binary"
3030 exit 1
3131 fi
32- PHPVERSION=` echo " $version_info " | head -n1 | awk { ' print $2' } | sed -e ' s/-/\n/g' | head -n1`
32+ PHPVERSION=` echo " $version_info " | head -n1 | awk ' { print $2} ' | sed -e ' s/-/\n/g' | head -n1`
3333 if [ -z " $PHPVERSION " ]; then
3434 echo " $1 : PHP version empty"
3535 exit 1
141141 exit 1
142142fi
143143
144- random=` cat /dev/urandom | tr -dc A-Za-z0-9 | head -c5 | md5sum | awk { ' print $1' } `
144+ random=` cat /dev/urandom | tr -dc A-Za-z0-9 | head -c5 | md5sum | awk ' { print $1} ' `
145145
146146# set base path for the url that checks the current version
147147basepath=" http://download.seinternal.com/integration"
You can’t perform that action at this time.
0 commit comments