renaming blog variable (formerly SAP)
This commit is contained in:
@@ -353,7 +353,7 @@ class Databap extends PhpObject
|
|||||||
$this->addUser('test', 'test', 'test', 'test@test.com');
|
$this->addUser('test', 'test', 'test', 'test@test.com');
|
||||||
|
|
||||||
//Write the SAP blog parser bash script to main folder
|
//Write the SAP blog parser bash script to main folder
|
||||||
@file_put_contents('sap_website_parser.sh', "#!/bin/bash\n\n/usr/bin/php -f index.php a=external_access p=sap_blog auth_token=".$iAdminId.'_'.$this->generateExternalAccessToken($iAdminId));
|
@file_put_contents('sap_website_parser.sh', "#!/bin/bash\n\n/usr/bin/php -f index.php a=external_access p=blogs auth_token=".$iAdminId.'_'.str_replace('$', '\$', $this->generateExternalAccessToken($iAdminId)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setUserId($iUserId)
|
private function setUserId($iUserId)
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ elseif($bUserOk && $sAction==Databap::EXT_ACCESS)
|
|||||||
{
|
{
|
||||||
switch($sPage)
|
switch($sPage)
|
||||||
{
|
{
|
||||||
case 'sap_blog': //Syncing SAP BW Blog with database & spreading the news on chat
|
case 'blogs': //Syncing Blogs with database & spreading the news on chat
|
||||||
$sResult = $oDatabap->syncSapBlog();
|
$sResult = $oDatabap->syncSapBlog();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user