The city was the capital of the old , Buddhist kingdom of Srivijaya that included a large part of Malaysia and Indonesia . The city was once the capital of the ancient , Buddhist kingdom of Srivijaya that controlled a large part of what is now Indonesia , Malaysia and Southern Thailand .