Rename Spot to Livetrail internally
Deploy Livetrail / deploy (push) Successful in 21s

This commit is contained in:
2026-08-18 15:55:55 +02:00
parent ced5e87542
commit 2aac7ad5c4
55 changed files with 211 additions and 211 deletions
+7 -7
View File
@@ -1,6 +1,6 @@
<?php
namespace Franzz\Spot;
namespace Franzz\Livetrail;
use Franzz\Objects\PhpObject;
use Franzz\Objects\Db;
use \Settings;
@@ -116,16 +116,16 @@ class User extends PhpObject {
$this->updateGravatar($iUserId, $sEmail);
}
return Spot::getResult($bSuccess, $sDesc, [Db::getId(self::USER_TABLE) => $iUserId]);
return Livetrail::getResult($bSuccess, $sDesc, [Db::getId(self::USER_TABLE) => $iUserId]);
}
public function setSubscription($bSubscribed) {
if($this->getUserId() > 0) {
$iSubscribed = $bSubscribed?1:0;
$iUserId = $this->oDb->updateRow(self::USER_TABLE, $this->getUserId(), array('subscribed'=>$iSubscribed));
if(!$iUserId) return Spot::getResult(false, 'lang:error.commit_db');
if(!$iUserId) return Livetrail::getResult(false, 'lang:error.commit_db');
$this->asUserInfo['subscribed'] = $iSubscribed;
return Spot::getResult(true, $iSubscribed?'lang:account.subscribed':'lang:account.unsubscribed');
return Livetrail::getResult(true, $iSubscribed?'lang:account.subscribed':'lang:account.unsubscribed');
}
}
@@ -200,7 +200,7 @@ class User extends PhpObject {
$this->setTokenCookie();
}
return Spot::getResult($bSuccess, $sDesc);
return Livetrail::getResult($bSuccess, $sDesc);
}
public function logout() {
@@ -208,7 +208,7 @@ class User extends PhpObject {
$this->clearSession();
$this->clearCookie();
$this->setUserId(0);
return Spot::getResult(true, 'lang:account.logged_out');
return Livetrail::getResult(true, 'lang:account.logged_out');
}
public function updateNickname($sNickname) {
@@ -239,7 +239,7 @@ class User extends PhpObject {
}
}
return Spot::getResult($bSuccess, $sDesc);
return Livetrail::getResult($bSuccess, $sDesc);
}
/* Session */